From 8cda268514517079fbcaac0d4df951750aa560fc Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 23 Jun 2017 03:58:08 +0000 Subject: [PATCH] Fix issue with hud_bgstretch cvar overwriting adjacent values in memory git-svn-id: https://svn.eduke32.com/eduke32@6224 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.h | 4 ++-- source/duke3d/src/lunatic/_defs_game.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/game.h b/source/duke3d/src/game.h index 7d5d8eb42..f16ef4b75 100644 --- a/source/duke3d/src/game.h +++ b/source/duke3d/src/game.h @@ -160,13 +160,13 @@ typedef struct { vec2_t m_origin; int32_t playerbest; - int32_t configversion; + int32_t configversion, bgstretch; #if !defined LUNATIC int16_t cameraang, camerasect, camerahoriz; #endif int16_t pause_on,from_bonus; int16_t camerasprite,last_camsprite; - int16_t last_level,secretlevel, bgstretch; + int16_t last_level,secretlevel; struct { int32_t UseJoystick; diff --git a/source/duke3d/src/lunatic/_defs_game.lua b/source/duke3d/src/lunatic/_defs_game.lua index 988aeeb2f..4e5e65864 100644 --- a/source/duke3d/src/lunatic/_defs_game.lua +++ b/source/duke3d/src/lunatic/_defs_game.lua @@ -518,11 +518,11 @@ typedef struct { vec2_t m_origin; int32_t playerbest; - int32_t configversion; + int32_t configversion, bgstretch; int16_t pause_on,from_bonus; int16_t camerasprite,last_camsprite; - int16_t last_level,secretlevel, bgstretch; + int16_t last_level,secretlevel; struct { int32_t UseJoystick;