replace those with P_GetLocalPlayerForNum
This commit is contained in:
1 parent
0c75d8aca3
commit
b93a5c5305
2 files changed
+3
-7
No files matched your search
+1
-2
@@ -225,8 +225,7 @@ boolean P_DoSpring(mobj_t *spring, mobj_t *object)
|
||||
{
|
||||
for (UINT8 j = 0; j <= splitscreen; ++j)
|
||||
{
|
||||
INT32 id = (j == 0 ? consoleplayer : displayplayers[j]);
|
||||
if (object->player == &players[id])
|
||||
if (object->player == P_GetLocalPlayerForNum(j))
|
||||
{
|
||||
localangle[j] = spring->angle;
|
||||
break;
|
||||
|
||||
+2
-5
@@ -3537,9 +3537,7 @@ DoneSection2:
|
||||
{
|
||||
for (UINT8 j = 0; j <= splitscreen; ++j)
|
||||
{
|
||||
INT32 id = (j == 0 ? consoleplayer : displayplayers[j]);
|
||||
|
||||
if (player == &players[id])
|
||||
if (player == P_GetLocalPlayerForNum(j))
|
||||
{
|
||||
localangle[j] = player->mo->angle;
|
||||
break;
|
||||
@@ -7482,8 +7480,7 @@ void T_Pusher(pusher_t *p)
|
||||
{
|
||||
for (UINT8 i = 0; i <= splitscreen; ++i)
|
||||
{
|
||||
INT32 id = (i == 0 ? consoleplayer : displayplayers[i]);
|
||||
if (thing->player == &players[id])
|
||||
if (thing->player == P_GetLocalPlayerForNum(i))
|
||||
{
|
||||
if (thing->angle - localangle[i] > ANGLE_180)
|
||||
localangle[i] -= (localangle[i] - thing->angle) / 8;
|
||||
|
||||
Reference in new issue
Block a user