From f95c2205144e9722b81e0a6f92dbe45ed85244e7 Mon Sep 17 00:00:00 2001 From: Toastical <20125180+Toastical@users.noreply.github.com> Date: Thu, 26 Mar 2026 00:37:04 +0200 Subject: [PATCH] Mark atom.loc as const. Redefines atom/movable.loc as non-const --- DMCompiler/DMStandard/Types/Atoms/Movable.dm | 4 +++- DMCompiler/DMStandard/Types/Atoms/_Atom.dm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DMCompiler/DMStandard/Types/Atoms/Movable.dm b/DMCompiler/DMStandard/Types/Atoms/Movable.dm index ff0a4b589e..4284a39e35 100644 --- a/DMCompiler/DMStandard/Types/Atoms/Movable.dm +++ b/DMCompiler/DMStandard/Types/Atoms/Movable.dm @@ -1,6 +1,8 @@ /atom/movable var/screen_loc - + + var/loc // Re-declared as atom.loc is a const, but movable.loc isnt. + var/animate_movement = FORWARD_STEPS as opendream_unimplemented var/list/locs = null as opendream_unimplemented var/glide_size = 0 diff --git a/DMCompiler/DMStandard/Types/Atoms/_Atom.dm b/DMCompiler/DMStandard/Types/Atoms/_Atom.dm index ca0ee2c72e..b410e559cd 100644 --- a/DMCompiler/DMStandard/Types/Atoms/_Atom.dm +++ b/DMCompiler/DMStandard/Types/Atoms/_Atom.dm @@ -14,7 +14,7 @@ var/tmp/list/vis_locs = null as opendream_unimplemented var/list/vis_contents = null - var/tmp/atom/loc + var/tmp/atom/loc as opendream_compiletimereadonly var/dir = SOUTH var/tmp/x = 0 var/tmp/y = 0