mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
This is more faster than using division and not operator.
This commit is contained in:
@@ -93,7 +93,7 @@ var/global/list/uncollectable_vars=list(
|
||||
var/refID = destroyed[1]
|
||||
var/atom/A = locate(refID)
|
||||
|
||||
if(A && A.gc_destroyed && A.gc_destroyed >= world.timeofday - GC_COLLECTION_TIMEOUT)
|
||||
if (A && A.gc_destroyed && A.gc_destroyed >= world.timeofday - GC_COLLECTION_TIMEOUT)
|
||||
// Something's still referring to the qdel'd object. Kill it.
|
||||
del A
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
lastAngle = angle
|
||||
|
||||
if (!round(time / nextTime))
|
||||
if (world.time < nextTime)
|
||||
return
|
||||
|
||||
nextTime += updatePer
|
||||
|
||||
Reference in New Issue
Block a user