From c41f0789fecf04c88cff61d2e0b402fe49285510 Mon Sep 17 00:00:00 2001 From: VMSolidus Date: Wed, 27 May 2026 11:34:47 -0400 Subject: [PATCH] OpenDream Compile Fixes (#22518) Fixes a handful of errors that prevented this codebase from compiling with OpenDream. I have tested this. image --- code/__DEFINES/rust_g.dm | 2 +- code/game/dna/genes/disabilities.dm | 10 +++++----- html/changelogs/hellfirejag-opendream-compat.yml | 4 ++++ interface/skin.dmf | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 html/changelogs/hellfirejag-opendream-compat.yml diff --git a/code/__DEFINES/rust_g.dm b/code/__DEFINES/rust_g.dm index e718682e67f..e604eb40d5e 100644 --- a/code/__DEFINES/rust_g.dm +++ b/code/__DEFINES/rust_g.dm @@ -33,7 +33,7 @@ // It's not in the current directory, so try others return __rust_g = "librust_g.so" else - return __rust_g = "rust_g" + return __rust_g = "rust_g.dll" #define RUST_G (__rust_g || __detect_rust_g()) #endif diff --git a/code/game/dna/genes/disabilities.dm b/code/game/dna/genes/disabilities.dm index 6ba35d454ac..0d68487424c 100644 --- a/code/game/dna/genes/disabilities.dm +++ b/code/game/dna/genes/disabilities.dm @@ -10,19 +10,19 @@ name="DISABILITY" // Mutation to give (or 0) - var/mutation=0 + var/mutation // Disability to give (or 0) - var/disability=0 + var/disability // SDisability to give (or 0) - var/sdisability=0 + var/sdisability // Activation message - var/activation_message="" + var/activation_message // Yay, you're no longer growing 3 arms - var/deactivation_message="" + var/deactivation_message /datum/dna/gene/disability/can_activate(var/mob/M,var/flags) return 1 // Always set! diff --git a/html/changelogs/hellfirejag-opendream-compat.yml b/html/changelogs/hellfirejag-opendream-compat.yml new file mode 100644 index 00000000000..e9be84b0d34 --- /dev/null +++ b/html/changelogs/hellfirejag-opendream-compat.yml @@ -0,0 +1,4 @@ +author: Hellfirejag +delete-after: True +changes: + - refactor: "Fixed a small handful of code errors that prevented OpenDream from compiling." diff --git a/interface/skin.dmf b/interface/skin.dmf index 9607bf37064..ebf6412c29f 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -664,7 +664,7 @@ macro "hotkeymode" macro "borgmacro" elem name = "TAB" - command = ".winset \"mainwindow.macro=borghotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true"" + command = ".winset \"mainwindow.macro=borghotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true \"" elem name = "CENTER+REP" command = ".center"