From 93c5d1b7ab64f91bf9cedbd208ea518c9c781136 Mon Sep 17 00:00:00 2001 From: MrStonedOne Date: Fri, 18 Mar 2016 21:45:22 -0700 Subject: [PATCH] fixes wall mounted objects --- code/__DEFINES/misc.dm | 6 ++++++ code/__HELPERS/510.dm | 2 +- code/game/atoms_movable.dm | 1 + code/modules/atmospherics/gasmixtures/gas_types.dm | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index 6029de927b8..5fd7a0ddd54 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -340,6 +340,12 @@ var/list/bloody_footprints_cache = list() ///////////////////////////////////// // atom.appearence_flags shortcuts // ///////////////////////////////////// +//this was added midway thru 510, so it might not exist in some versions, but we can't check by minor verison +#ifndef TILE_BOUND +#warn this version of 510 is too old, You should use byond 510.1332 or later when using 510. +#define TILE_BOUND 256 +#endif + // Disabling certain features #define APPEARANCE_IGNORE_TRANSFORM RESET_TRANSFORM #define APPEARANCE_IGNORE_COLOUR RESET_COLOR diff --git a/code/__HELPERS/510.dm b/code/__HELPERS/510.dm index 2903fee5a3b..dc71df1ea61 100644 --- a/code/__HELPERS/510.dm +++ b/code/__HELPERS/510.dm @@ -255,4 +255,4 @@ #undef CannotBeFlat #undef CannotBeAssoc #undef BadList -#endif \ No newline at end of file +#endif diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 4a3f67bffd0..0c3f60be2b4 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -14,6 +14,7 @@ var/inertia_dir = 0 var/pass_flags = 0 glide_size = 8 + appearance_flags = TILE_BOUND /atom/movable/Move(atom/newloc, direct = 0) diff --git a/code/modules/atmospherics/gasmixtures/gas_types.dm b/code/modules/atmospherics/gasmixtures/gas_types.dm index 5a3871292d6..bb79aa21bfe 100644 --- a/code/modules/atmospherics/gasmixtures/gas_types.dm +++ b/code/modules/atmospherics/gasmixtures/gas_types.dm @@ -72,7 +72,7 @@ var/list/hardcoded_gases = list("o2","n2","co2","plasma") //the main four gases, icon = 'icons/effects/tile_effects.dmi' mouse_opacity = 0 layer = 5 - appearance_flags = RESET_COLOR + appearance_flags = RESET_COLOR|TILE_BOUND /obj/effect/overlay/gas/New(state) . = ..()