Ports /tg controller optimizations

https://github.com/tgstation/tgstation/pull/31092 - Fixes subsystems not returning a qdel hint
https://github.com/tgstation/tgstation/pull/31494 - In which the stoner one gets stoned and tries to address tick contention... again
https://github.com/tgstation/tgstation/pull/31950 - Removes an empty New()
https://github.com/tgstation/tgstation/pull/31951 - Logs subsystem shutdowns
This commit is contained in:
Leshana
2017-12-27 19:54:45 -05:00
parent c6e8184b58
commit a435d73450
8 changed files with 59 additions and 28 deletions

View File

@@ -296,8 +296,7 @@
if (holder)
sleep(1)
else
sleep(5)
stoplag()
stoplag(5)
/client/proc/last_activity_seconds()
return inactivity / 10

View File

@@ -1165,7 +1165,7 @@
//They ran away!
else
ai_log("AttackTarget() out of range!",3)
sleep(1) // Unfortunately this is needed to protect from ClosestDistance() sometimes not updating fast enough to prevent an infinite loop.
stoplag(1) // Unfortunately this is needed to protect from ClosestDistance() sometimes not updating fast enough to prevent an infinite loop.
handle_stance(STANCE_ATTACK)
return 0