Context
P_InitSwitchList in room/src/doom/p_switch.rs loads the switch texture table.
C behavior
The C source wraps each switch texture name with DEH_String() before looking it up, allowing Dehacked patches to rename switch textures.
Rust behavior
The Rust port uses the raw texture names without DEH_String, so Dehacked patches cannot override switch texture names.
Location
room/src/doom/p_switch.rs — P_InitSwitchList
Flagged with // FIXME: in the source.
Suggested fix
Route each texture name through DEH_String (or the Rust equivalent) before the texture lookup.
Context
P_InitSwitchListinroom/src/doom/p_switch.rsloads the switch texture table.C behavior
The C source wraps each switch texture name with
DEH_String()before looking it up, allowing Dehacked patches to rename switch textures.Rust behavior
The Rust port uses the raw texture names without
DEH_String, so Dehacked patches cannot override switch texture names.Location
room/src/doom/p_switch.rs—P_InitSwitchListFlagged with
// FIXME:in the source.Suggested fix
Route each texture name through
DEH_String(or the Rust equivalent) before the texture lookup.