From 7f19a120a09365e387647bcf1078923b94777ed6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 30 Dec 2022 09:49:18 +0100 Subject: [PATCH] - clean out RRRA move flags in the CON parser for the other games. This allows keeping their function enabled everywhere so that they can become a common feature without further need for validation. --- source/games/duke/src/gamedef.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index a642856a5..0f199a625 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -974,6 +974,7 @@ int ConCompiler::parsecommand() transnum(LABEL_DEFINE); j |= popscriptvalue(); } + if (!isRRRA()) j &= 8191; // clean out RRRA only moves in other games. appendscriptvalue(j); } else @@ -1136,6 +1137,7 @@ int ConCompiler::parsecommand() transnum(LABEL_DEFINE); k |= popscriptvalue(); } + if (!isRRRA()) k &= 8191; // clean out RRRA only moves in other games. ai.moveflags = k; } return 0; @@ -1232,6 +1234,7 @@ int ConCompiler::parsecommand() j |= popscriptvalue(); } + if (!isRRRA()) j &= 8191; // clean out RRRA only moves in other games. appendscriptvalue(j); break; }