mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
You can no longer vote for a map if it was the last 2 maps played, or the current map. (#1745)
## About The Pull Request You can no longer vote for a map if it was the last 2 maps played, or the current map. Ie if the map rotation is Alpha (Current) Beta (Last) Charlie (Second Last) then you can't vote for Alpha, Beta, or Charlie. ## Why It's Good For The Game Prevents a never-ending cycle of people voting for the same 3 maps. This is to prevent a spree of people voting for the same 2 maps (cough ## Proof Of Testing Untested. ## Changelog 🆑 BurgerBB del: You can no longer vote for a map if it was the last 2 maps played, or the current map. /🆑 --------- Co-authored-by: Swift <jackwars4@gmail.com> Co-authored-by: projectkepler-RU <99981766+projectkepler-ru@users.noreply.github.com> Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com>
This commit is contained in:
co-authored by
Swift
projectkepler-RU
Waterpig
parent
e2bee4ab8b
commit
e8dee18b1e
@@ -1,5 +1,5 @@
|
||||
#define FILE_RECENT_MAPS "data/RecentMaps.json"
|
||||
#define KEEP_ROUNDS_MAP 3
|
||||
#define KEEP_ROUNDS_MAP 2 //BUBBERSTATION CHANGE: 3 TO 2.
|
||||
|
||||
SUBSYSTEM_DEF(persistence)
|
||||
name = "Persistence"
|
||||
@@ -111,7 +111,7 @@ SUBSYSTEM_DEF(persistence)
|
||||
for(var/name in SSpersistence.saved_maps)
|
||||
if(VM.map_name == name)
|
||||
run++
|
||||
if(run >= 2) //If run twice in the last KEEP_ROUNDS_MAP + 1 (including current) rounds, disable map for voting and rotation.
|
||||
if(run >= 1) //If run twice in the last KEEP_ROUNDS_MAP + 1 (including current) rounds, disable map for voting and rotation. //BUBBERSTATION CHANGE 2 TO 1.
|
||||
blocked_maps += VM.map_name
|
||||
|
||||
///Updates the list of the most recent maps.
|
||||
|
||||
Reference in New Issue
Block a user