From 5a0c8da6bf9cfdfc42d72d03232673335396f88e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 19 Mar 2021 21:00:12 +0100 Subject: [PATCH] - Duke: fixed some incorrect assignments in CON parser --- source/games/duke/src/gameexec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index 55e450aaa..0d6c6f540 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -977,7 +977,7 @@ void DoWall(char bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor, s else SetGameVarID((int)lVar2, wall[iWall].overpicnum, sActor, sPlayer); break; case WALL_SHADE: - if (bSet) wall[iWall].x = lValue; + if (bSet) wall[iWall].shade = lValue; else SetGameVarID((int)lVar2, wall[iWall].shade, sActor, sPlayer); break; case WALL_PAL: @@ -1009,8 +1009,8 @@ void DoWall(char bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor, s else SetGameVarID((int)lVar2, wall[iWall].hitag, sActor, sPlayer); break; case WALL_EXTRA: - if (bSet) wall[iWall].x = lValue; - else SetGameVarID((int)lVar2, wall[iWall].x, sActor, sPlayer); + if (bSet) wall[iWall].extra = lValue; + else SetGameVarID((int)lVar2, wall[iWall].extra, sActor, sPlayer); break; default: break;