mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
-Small tweak to /atom/DblClick. The dummy will be garbage collected instead, hopefully this will help performance. I'm concerned that somehow other code will reference the Dummy, stopping it from being garbage collected. I think that the small occurrences that this could will not be game breaking or affect anything.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4737 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -1128,7 +1128,11 @@ var/using_new_click_proc = 0 //TODO ERRORAGE (This is temporary, while the DblCl
|
|||||||
See the previous More info, for... more info...
|
See the previous More info, for... more info...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
del(D)
|
//del(D)
|
||||||
|
// Garbage Collect Dummy
|
||||||
|
D.loc = null
|
||||||
|
D = null
|
||||||
|
|
||||||
// ------- DUMMY OBJECT'S SERVED IT'S PURPOSE, IT'S REWARDED WITH A SWIFT DELETE -------
|
// ------- DUMMY OBJECT'S SERVED IT'S PURPOSE, IT'S REWARDED WITH A SWIFT DELETE -------
|
||||||
if (!( ok ))
|
if (!( ok ))
|
||||||
// ------- TESTS ABOVE DETERMINED YOU CANNOT REACH THE TILE -------
|
// ------- TESTS ABOVE DETERMINED YOU CANNOT REACH THE TILE -------
|
||||||
@@ -1358,3 +1362,16 @@ var/using_new_click_proc = 0 //TODO ERRORAGE (This is temporary, while the DblCl
|
|||||||
|
|
||||||
/atom/proc/checkpass(passflag)
|
/atom/proc/checkpass(passflag)
|
||||||
return pass_flags&passflag
|
return pass_flags&passflag
|
||||||
|
|
||||||
|
/*
|
||||||
|
/client/verb/check_dummy()
|
||||||
|
set name = "List Dummies"
|
||||||
|
set category = "Debug"
|
||||||
|
|
||||||
|
var/list/dummies = list()
|
||||||
|
for(var/obj/item/weapon/dummy/D in world)
|
||||||
|
usr << "[D] - [D.x], [D.y], [D.z] - [D.loc]"
|
||||||
|
dummies += D
|
||||||
|
usr << "[dummies.len] found!"
|
||||||
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -762,7 +762,10 @@ mob/living/carbon/metroid/var/temperature_resistance = T0C+75
|
|||||||
if(!border_obstacle.CanPass(D, D.loc, 1, 0))
|
if(!border_obstacle.CanPass(D, D.loc, 1, 0))
|
||||||
ok = 0
|
ok = 0
|
||||||
|
|
||||||
del(D)
|
//del(D)
|
||||||
|
//Garbage Collect Dummy
|
||||||
|
D.loc = null
|
||||||
|
D = null
|
||||||
if (!( ok ))
|
if (!( ok ))
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user