Fixes negative auth coutns

This commit is contained in:
kevinz000
2018-01-14 20:53:27 -08:00
committed by CitadelStationBot
parent ade3ded854
commit 47c74443da
+1 -1
View File
@@ -86,7 +86,7 @@
if((old_len != authorized.len) && !ENGINES_STARTED)
var/alert = (authorized.len > old_len)
var/repeal = (authorized.len < old_len)
var/remaining = auth_need - authorized.len
var/remaining = max(0, auth_need - authorized.len)
if(authorized.len && remaining)
minor_announce("[remaining] authorizations needed until shuttle is launched early", null, alert)
if(repeal)