Skip to content

Commit

Permalink
Automap: Ensure automap initial view position gets set
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 23, 2018
1 parent b3b1252 commit 893e92b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Expand Up @@ -2033,7 +2033,7 @@ void G_SetAutomapRotateMode(byte enableRotate)
{
cfg.common.automapRotate = enableRotate; // Note: this sets the global default.

for (int i = 0; i < DDMAXPLAYERS; ++i)
for (int i = 0; i < MAXPLAYERS; ++i)
{
ST_SetAutomapCameraRotation(i, cfg.common.automapRotate);
if (players[i].plr->inGame)
Expand Down
4 changes: 2 additions & 2 deletions doomsday/apps/plugins/doom/src/st_stuff.cpp
Expand Up @@ -754,9 +754,9 @@ static void initAutomapForCurrentMap(AutomapWidget &automap)
#endif

// Are we re-centering on a followed mobj?
if(mobj_t *mob = automap.followMobj())
if (mobj_t *mob = automap.followMobj())
{
automap.setCameraOrigin(Vector2d(mob->origin));
automap.setCameraOrigin(Vector2d(mob->origin), true);
}

if(IS_NETGAME)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/doom64/src/st_stuff.cpp
Expand Up @@ -370,7 +370,7 @@ static void initAutomapForCurrentMap(AutomapWidget& map)

if (followTarget)
{
map.setCameraOrigin(Vector2d(followTarget->origin));
map.setCameraOrigin(Vector2d(followTarget->origin), true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/heretic/src/st_stuff.cpp
Expand Up @@ -750,7 +750,7 @@ static void initAutomapForCurrentMap(AutomapWidget &automap)
// Are we re-centering on a followed mobj?
if(mobj_t *mob = automap.followMobj())
{
automap.setCameraOrigin(Vector2d(mob->origin));
automap.setCameraOrigin(Vector2d(mob->origin), true);
}

if(IS_NETGAME)
Expand Down
4 changes: 2 additions & 2 deletions doomsday/apps/plugins/hexen/src/st_stuff.cpp
Expand Up @@ -623,9 +623,9 @@ static void initAutomapForCurrentMap(AutomapWidget &automap)
#endif

// Are we re-centering on a followed mobj?
if(mobj_t *mob = automap.followMobj())
if (mobj_t *mob = automap.followMobj())
{
automap.setCameraOrigin(Vector2d(mob->origin));
automap.setCameraOrigin(Vector2d(mob->origin), true);
}

if(IS_NETGAME)
Expand Down

0 comments on commit 893e92b

Please sign in to comment.