Fix event cancellation (#25200)

* Fix event cancellation

* CANT
This commit is contained in:
Cyberboss
2017-03-18 18:15:10 +01:00
committed by AnturK
parent 20b65bb29f
commit 3889d0372d
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -93,9 +93,9 @@ var/datum/controller/subsystem/events/SSevent
/datum/controller/subsystem/events/proc/TriggerEvent(datum/round_event_control/E)
. = E.preRunEvent()
if(!.)//we couldn't run this event for some reason, set its max_occurrences to 0
if(. == EVENT_CANT_RUN)//we couldn't run this event for some reason, set its max_occurrences to 0
E.max_occurrences = 0
else
else if(. != EVENT_CANCELLED)
E.runEvent(TRUE)
/datum/round_event/proc/findEventArea() //Here's a nice proc to use to find an area for your event to land in!