Fix last commit.

This commit is contained in:
Joris 2012-09-13 19:16:28 +02:00
parent 64314d4902
commit 18f5fe9062
2 changed files with 4 additions and 2 deletions

View file

@ -852,8 +852,8 @@ void CommandSharedVision(int player, bool state, int opponent)
if (before && !after) {
// Don't share vision anymore. Give each other explored terrain for good-bye.
for (int i = 0; i != this->Info.MapWidth * this->Info.MapHeight; ++i) {
CMapField &mf = *this->Field(i);
for (int i = 0; i != Map.Info.MapWidth * Map.Info.MapHeight; ++i) {
CMapField &mf = *Map.Field(i);
CMapFieldPlayerInfo &mfp = mf.playerInfo;
if (mfp.Visible[player] && !mfp.Visible[opponent]) {

View file

@ -738,6 +738,7 @@ static void SdlDoEvent(const EventCallback &callbacks, const SDL_Event &event)
}
InMainWindow = (event.active.gain != 0);
}
#if 0
if (event.active.state & SDL_APPACTIVE || SDL_GetAppState() & SDL_APPACTIVE) {
static bool DoTogglePause = false;
@ -755,6 +756,7 @@ static void SdlDoEvent(const EventCallback &callbacks, const SDL_Event &event)
}
}
}
#endif
break;
case SDL_KEYDOWN: