mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-10 13:16:26 +00:00
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:
parent
9c4ace6fbc
commit
31728166ca
2 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue