Adjust map anger conditions

Don't reset map anger when it votes for itself -- wait until the map gets played or it gets a genuine vote from someone.
This commit is contained in:
Sally Coolatta 2023-04-10 02:27:48 -04:00
parent 9c4ace6fbc
commit 31728166ca
2 changed files with 1 additions and 3 deletions

View file

@ -3892,6 +3892,7 @@ void G_AddMapToBuffer(INT16 map)
// Set our map's justPlayed value.
mapheaderinfo[map]->justPlayed = TOLMaps(gametype) - VOTE_NUM_LEVELS;
mapheaderinfo[map]->anger = 0; // Reset voting anger now that we're playing it
}
//

View file

@ -1250,9 +1250,6 @@ static void Y_TryMapAngerVote(void)
// Set the special vote to a random angry map.
pick = M_RandomKey(angryMapsCount);
D_ModifyClientVote(UINT8_MAX, angryMaps[pick]);
// Make it not angry anymore.
mapheaderinfo[ g_voteLevels[ angryMaps[pick] ][0] ]->anger = 0;
}
static void Y_TickVoteSelection(void)