diff --git a/Memory.xml b/Memory.xml index 5417f68ce..654b91564 100644 --- a/Memory.xml +++ b/Memory.xml @@ -934,7 +934,7 @@
-
+ @@ -1995,7 +1995,7 @@
-
+ fortress = 0, adventure = 1, arena = 0, menu and legends = 3 0xb4a814 Game mode: 0xb4a818 . fortress = 0, adventure = 1, arena = 4 0xe2e2a2 seems to be a copy of the first one @@ -2100,6 +2100,7 @@ + mode
@@ -2125,6 +2126,13 @@ + +
+
+
+
+
+ .-"""-. diff --git a/library/modules/World.cpp b/library/modules/World.cpp index 4827b8785..550c3e54e 100644 --- a/library/modules/World.cpp +++ b/library/modules/World.cpp @@ -96,7 +96,6 @@ World::World(DFContextShared * _d) { d->gamemode_offset = OG_World->getAddress( "game_mode" ); d->controlmode_offset = OG_World->getAddress( "control_mode" ); - d->controlmodecopy_offset = OG_World->getAddress( "control_mode" ); d->StartedMode = true; } catch(Error::All &){}; @@ -162,7 +161,6 @@ bool World::WriteGameMode(const t_gamemodes & wr) { d->owner->writeDWord(d->gamemode_offset,wr.game_mode); d->owner->writeDWord(d->controlmode_offset,wr.control_mode); - d->owner->writeDWord(d->controlmodecopy_offset,wr.control_mode); return true; } return false;