diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/am_map.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/am_map.c b/src/am_map.c index cad46a70..30d140f8 100644 --- a/src/am_map.c +++ b/src/am_map.c @@ -472,11 +472,15 @@ void AM_initVariables(void) m_w = FTOM(f_w); m_h = FTOM(f_h); - plr = &players[0]; - // find player to center on initially - if (!playeringame[pnum = consoleplayer]) + if (playeringame[consoleplayer]) { + plr = &players[consoleplayer]; + } + else + { + plr = &players[0]; + for (pnum=0;pnum<MAXPLAYERS;pnum++) { if (playeringame[pnum]) |