mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 16:37:19 +01:00
Turn more unmanaged global vars into GLOB (#20446)
Turned a ton of unmanaged globals into managed globals. Refactored some UT output. Removed some unused things, including vars. Added a test to ensure people don't keep adding new unmanaged vars.
This commit is contained in:
@@ -71,8 +71,8 @@
|
||||
LOG_DEBUG("API: Throttling bypassed - IP [addr] is whitelisted.")
|
||||
return FALSE
|
||||
|
||||
var/last_time = world_api_rate_limit[addr]
|
||||
world_api_rate_limit[addr] = REALTIMEOFDAY
|
||||
var/last_time = GLOB.world_api_rate_limit[addr]
|
||||
GLOB.world_api_rate_limit[addr] = REALTIMEOFDAY
|
||||
|
||||
if (last_time != null && abs(last_time - REALTIMEOFDAY) < GLOB.config.api_rate_limit)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user