Skip to content

Mark atom.loc as opendream_compiletimereadonly. Redefines atom/movable.loc as a non-const.#2541

Open
Toastical wants to merge 1 commit intoOpenDreamProject:masterfrom
Toastical:atom-and-turf-loc-const
Open

Mark atom.loc as opendream_compiletimereadonly. Redefines atom/movable.loc as a non-const.#2541
Toastical wants to merge 1 commit intoOpenDreamProject:masterfrom
Toastical:atom-and-turf-loc-const

Conversation

@Toastical
Copy link

@Toastical Toastical commented Mar 25, 2026

BYONDs atom.loc is a const (alongside turf.loc etc). This re-declares loc on movables so that's not a constant. It appeared to run fine ingame. Wish I knew how to test it better beyond just running around in world, but alas. Also dropped a bunch of bombs to get more entities moving around and such. No runtimes or crashes :D

Fixes #2378

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Mar 25, 2026
@Toastical Toastical changed the title Mark atom.loc as const. Redefines atom/movable.loc as non-const Mark atom.loc as opendream_compiletimereadonly. Redefines atom/movable.loc as a non-const. Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compiler Involves the OpenDream compiler size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/turf.loc should be read-only

1 participant