ref: 693fb386fc1ca8551dcea553e3dd667f2f458f61
parent: eef2733d509c77f6803da1393aceaf21c204cb0f
author: Simon Howard <fraggle@gmail.com>
date: Mon Aug 27 15:31:30 EDT 2007
Fix bug where the automap always follows player 1 in multiplayer mode (thanks Janizdreg!) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 959
--- a/src/am_map.c
+++ b/src/am_map.c
@@ -472,11 +472,15 @@
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])