- misc changes

This commit is contained in:
InspirationByte 2022-01-13 21:25:49 +03:00
parent 3a034ea524
commit a0ad45457b
3 changed files with 5 additions and 11 deletions

View File

@ -1492,12 +1492,12 @@ void CheckForPause(void)
{
if (NumPlayers == 1)
{
if (paddp == 0x800 && bMissionTitleFade == 0) // [A] && gInGameCutsceneActive == 0) // allow pausing during cutscene
if (paddp == MPAD_START && bMissionTitleFade == 0) // [A] && gInGameCutsceneActive == 0) // allow pausing during cutscene
{
EnablePause(PAUSEMODE_PAUSE);
}
}
else if (paddp == 0x800)
else if (paddp == MPAD_START)
{
EnablePause(PAUSEMODE_PAUSEP1);
}

View File

@ -1170,8 +1170,7 @@ void SetMissionMessage(char *message, int priority, int seconds)
if (message == MissionStrings - 1 || message == NULL || NumPlayers == 0)
return;
i = 0;
while (i < NumPlayers)
for (i = 0; i < NumPlayers; i++)
{
if (Mission.message_timer[i] == 0 || Mission.message_priority[i] <= priority)
{
@ -1187,8 +1186,6 @@ void SetMissionMessage(char *message, int priority, int seconds)
Mission.message_timer[i] = seconds * 30;
}
}
i++;
}
}

View File

@ -995,8 +995,7 @@ void DrawMultiplayerMap(void)
r = 255;
g = 0;
i = 0;
do {
for (i = 0; i < NumPlayers; i++) {
target.vx = pl->pos[0];
target.vz = pl->pos[2];
@ -1013,9 +1012,7 @@ void DrawMultiplayerMap(void)
r++;
g--;
i++;
} while (i < NumPlayers);
}
draw_box(yPos, 64);