Skip to content

Commit

Permalink
All Games|Fixed: Automap "follow on/off" messages were reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 22, 2012
1 parent e5dbd90 commit 69a8d40
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions doomsday/plugins/jdoom/src/st_stuff.c
Expand Up @@ -3277,11 +3277,11 @@ void ST_SetAutomapCameraRotation(int player, boolean on)

void ST_ToggleAutomapPanMode(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
if(UIAutomap_SetPanMode(obj, !UIAutomap_PanMode(obj)))
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;
if(UIAutomap_SetPanMode(ob, !UIAutomap_PanMode(ob)))
{
P_SetMessage(&players[player], (UIAutomap_PanMode(obj)? AMSTR_FOLLOWON : AMSTR_FOLLOWOFF), true);
P_SetMessage(&players[player], (UIAutomap_PanMode(ob)? AMSTR_FOLLOWOFF : AMSTR_FOLLOWON), true);
}
}

Expand Down
8 changes: 4 additions & 4 deletions doomsday/plugins/jdoom64/src/st_stuff.c
Expand Up @@ -1057,11 +1057,11 @@ void ST_SetAutomapCameraRotation(int player, boolean on)

void ST_ToggleAutomapPanMode(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
if(UIAutomap_SetPanMode(obj, !UIAutomap_PanMode(obj)))
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;
if(UIAutomap_SetPanMode(ob, !UIAutomap_PanMode(ob)))
{
P_SetMessage(&players[player], (UIAutomap_PanMode(obj)? AMSTR_FOLLOWON : AMSTR_FOLLOWOFF), true);
P_SetMessage(&players[player], (UIAutomap_PanMode(ob)? AMSTR_FOLLOWOFF : AMSTR_FOLLOWON), true);
}
}

Expand Down
8 changes: 4 additions & 4 deletions doomsday/plugins/jheretic/src/st_stuff.c
Expand Up @@ -3089,11 +3089,11 @@ void ST_SetAutomapCameraRotation(int player, boolean on)

void ST_ToggleAutomapPanMode(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
if(UIAutomap_SetPanMode(obj, !UIAutomap_PanMode(obj)))
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;
if(UIAutomap_SetPanMode(ob, !UIAutomap_PanMode(ob)))
{
P_SetMessage(&players[player], (UIAutomap_PanMode(obj)? AMSTR_FOLLOWON : AMSTR_FOLLOWOFF), true);
P_SetMessage(&players[player], (UIAutomap_PanMode(ob)? AMSTR_FOLLOWOFF : AMSTR_FOLLOWON), true);
}
}

Expand Down
8 changes: 4 additions & 4 deletions doomsday/plugins/jhexen/src/st_stuff.c
Expand Up @@ -3367,11 +3367,11 @@ void ST_SetAutomapCameraRotation(int player, boolean on)

void ST_ToggleAutomapPanMode(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
if(UIAutomap_SetPanMode(obj, !UIAutomap_PanMode(obj)))
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;
if(UIAutomap_SetPanMode(ob, !UIAutomap_PanMode(ob)))
{
P_SetMessage(&players[player], (UIAutomap_PanMode(obj)? AMSTR_FOLLOWON : AMSTR_FOLLOWOFF), true);
P_SetMessage(&players[player], (UIAutomap_PanMode(ob)? AMSTR_FOLLOWOFF : AMSTR_FOLLOWON), true);
}
}

Expand Down

0 comments on commit 69a8d40

Please sign in to comment.