Fix: Any tile that once had a player mine on it forever kept that flag. The map temp file will now be updated with a remove flag tag so that when a map is loaded the player mine flag will be removed.

If your savegame is already bugged you will need to step on each tile that had a mine to remove the player mine flag once.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7796 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2015-03-22 13:27:44 +00:00
parent 8ef0c1e353
commit 37f1ac452a
3 changed files with 35 additions and 4 deletions
+2
View File
@@ -48,6 +48,7 @@ enum
#endif
// sevenfm
SLM_MINE_PRESENT,
SLM_REMOVE_MINE_PRESENT, // silversurfer: we need this to get rid of the mine flag otherwise any tile that ever had a mine on it will forever be flagged with MAPELEMENT_PLAYER_MINE_PRESENT
};
typedef struct//dnl ch86 250214
@@ -92,6 +93,7 @@ void SaveBloodSmellAndRevealedStatesFromMapToTempFile();
// sevenfm
void SaveMineFlagFromMapToTempFile();
void RemoveMineFlagFromMapTempFile( INT32 usGridNo);
BOOLEAN SaveRevealedStatusArrayToRevealedTempFile( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ );