Codechange: use MapLogY() instead of FindFirstBit(MapSizeY()), MapSize() instead of MapSizeX() * MapSizeY()
This commit is contained in:
@@ -1144,7 +1144,7 @@ DEF_CONSOLE_CMD(ConRestart)
|
||||
|
||||
/* Don't copy the _newgame pointers to the real pointers, so call SwitchToMode directly */
|
||||
_settings_game.game_creation.map_x = MapLogX();
|
||||
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
|
||||
_settings_game.game_creation.map_y = MapLogY();
|
||||
_switch_mode = SM_RESTARTGAME;
|
||||
return true;
|
||||
}
|
||||
@@ -1161,7 +1161,7 @@ DEF_CONSOLE_CMD(ConReload)
|
||||
|
||||
/* Don't copy the _newgame pointers to the real pointers, so call SwitchToMode directly */
|
||||
_settings_game.game_creation.map_x = MapLogX();
|
||||
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
|
||||
_settings_game.game_creation.map_y = MapLogY();
|
||||
_switch_mode = SM_RELOADGAME;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user