mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -6094,6 +6094,11 @@ void AddBlueFlag( INT32 sGridNo ,INT8 bLevel )
|
||||
void RemoveBlueFlag( INT32 sGridNo, INT8 bLevel )
|
||||
{
|
||||
ApplyMapChangesToMapTempFile( TRUE );
|
||||
|
||||
// player mine present
|
||||
if( gpWorldLevelData[sGridNo].uiFlags & MAPELEMENT_PLAYER_MINE_PRESENT )
|
||||
RemoveMineFlagFromMapTempFile( sGridNo );
|
||||
|
||||
gpWorldLevelData[sGridNo].uiFlags &= ~(MAPELEMENT_PLAYER_MINE_PRESENT);
|
||||
|
||||
if ( bLevel == 0 )
|
||||
|
||||
Reference in New Issue
Block a user