[MIRROR] adds grep check for improperly used timer flags. [MDB IGNORE] (#16070)

* adds grep check for improperly used timer flags. (#69668)

* adds grep check for improperly used timer flags.

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-12 05:18:36 +02:00
committed by GitHub
parent ded0ecfb20
commit c37f2d5e03
2 changed files with 6 additions and 1 deletions

View File

@@ -609,7 +609,7 @@ SUBSYSTEM_DEF(timer)
. = hash_timer.id
return
else if(flags & TIMER_OVERRIDE)
stack_trace("TIMER_OVERRIDE used without TIMER_UNIQUE")
stack_trace("TIMER_OVERRIDE used without TIMER_UNIQUE") //this is also caught by grep.
var/datum/timedevent/timer = new(callback, wait, flags, timer_subsystem, hash, file && "[file]:[line]")
return timer.id