From 98c7118a3af735d9ad3f7e956b51b1e9e424790e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 25 Mar 2018 22:39:10 +0200 Subject: [PATCH] - fixed: A sidedef's sector and linedef references were writable. This cannot be allowed under any circumstances because this is what links the map geometry together. Yes, it will break any mod that tries to play with these variables, but any such mod has to be considered broken by design and must be stopped. --- wadsrc/static/zscript/mapdata.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/mapdata.txt b/wadsrc/static/zscript/mapdata.txt index 011400f86..e219e835a 100644 --- a/wadsrc/static/zscript/mapdata.txt +++ b/wadsrc/static/zscript/mapdata.txt @@ -57,9 +57,9 @@ struct Side native play WALLF_LIGHT_FOG = 128, // This wall's Light is used even in fog. }; - native Sector sector; // Sector the SideDef is facing. + native readonly Sector sector; // Sector the SideDef is facing. //DBaseDecal* AttachedDecals; // [RH] Decals bound to the wall - native Line linedef; + native readonly Line linedef; native int16 Light; native uint8 Flags;