Fix that 0.01% of times vote rigging will crash

This commit is contained in:
D3athrow
2020-09-05 12:54:55 -05:00
parent 88b41c47b3
commit 2d0871dc03

View File

@@ -60,7 +60,12 @@
binary = binaries
continue
if(skipping < 3)
all_maps[potential] = path + binary
var/fullpath = path+binary
if(copytext(fullpath,-4,0) == ".dmb")
all_maps[potential] = path + binary
else
binary = null
continue
if(skipping)
message_admins("Skipping map [potential] due to [skipping == 1 ? "not enough players." : "too many players."] Players min = [min] || max = [max]")
warning("Skipping map [potential] due to [skipping == 1 ? "not enough players." : "too many players."] Players min = [min] || max = [max]")