mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Door access fixed.
Anyone who puts the following segment of code anywhere OTHER than the initial object definition should be stabbed with a rusty knife!
/obj/machinery/door/
New()
//code
Del()
//code
Please, if it's not right by the definition then PLEASE include the whole path, otherwise searching for these procs becomes a nightmare:
/obj/machinery/door/New()
//code
/obj/machinery/door/Del()
//code
Thanks to TLE for finding the actual New() code, I had no idea it even existed.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1623 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -12,11 +12,7 @@
|
||||
anchored = 1
|
||||
var/autoclose = 0
|
||||
|
||||
New()
|
||||
if(density)
|
||||
layer = 3.1 //Above most items if closed
|
||||
else
|
||||
layer = 2.7 //Under all objects if opened. 2.7 due to tables being at 2.6
|
||||
|
||||
|
||||
/obj/machinery/door/firedoor
|
||||
name = "Firelock"
|
||||
|
||||
@@ -97,16 +97,18 @@
|
||||
|
||||
return 1
|
||||
|
||||
/obj/machinery/door
|
||||
New()
|
||||
..()
|
||||
/obj/machinery/door/New()
|
||||
..()
|
||||
if(density)
|
||||
layer = 3.1 //Above most items if closed
|
||||
else
|
||||
layer = 2.7 //Under all objects if opened. 2.7 due to tables being at 2.6
|
||||
update_nearby_tiles(need_rebuild=1)
|
||||
|
||||
update_nearby_tiles(need_rebuild=1)
|
||||
/obj/machinery/door/Del()
|
||||
update_nearby_tiles()
|
||||
|
||||
Del()
|
||||
update_nearby_tiles()
|
||||
|
||||
..()
|
||||
..()
|
||||
|
||||
|
||||
/obj/machinery/door/meteorhit(obj/M as obj)
|
||||
|
||||
Reference in New Issue
Block a user