Random map days no longer can choose the same map twice in a row (#25565)

* random map days no longer can choose the same map twice in a row

* Update code/controllers/subsystem/SSticker.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2024-05-30 13:11:20 -04:00
committed by GitHub
parent 8940351e7b
commit d5eee09abc
+2
View File
@@ -141,6 +141,8 @@ SUBSYSTEM_DEF(ticker)
var/list/pickable_types = list()
for(var/x in subtypesof(/datum/map))
var/datum/map/M = x
if(istype(SSmapping.map_datum, M)) // Random will never choose the same map twice in a row.
continue
if(initial(M.voteable) && length(GLOB.clients) >= initial(M.min_players_random))
pickable_types += M