Skip to content

Commit

Permalink
- initialize the new temporary actor properties to something useful.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Mar 27, 2023
1 parent 06bdb8c commit fb06e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions source/core/zcc_compile_raze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ void ZCCRazeCompiler::InitDefaults()
bag.Namespace = OutNamespace;
bag.Info = ti;
bag.Lumpnum = c->cls->SourceLump;
bag.DefaultAction = NAME_Null; // 'none' is valíd content here so use 'null' as 'not set'.
bag.DefaultMove = NAME_Null;
// The actual script position needs to be set per property.

for (auto d : c->Defaults)
Expand Down
4 changes: 2 additions & 2 deletions source/games/duke/src/premap_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ static void cachespritenum(DDukeActor* actor)
tloadtile(j, pal);
maxc = 0;
break;
case RTILE_SBSWIPE:
case RTILE_BUBBAELVIS:
if (isRRRA())
for (j = RTILE_SBSWIPE; j <= (RTILE_SBSWIPE + 29); j++)
for (j = RTILE_BUBBAELVIS; j <= (RTILE_BUBBAELVIS + 29); j++)
tloadtile(j, pal);
maxc = 0;
break;
Expand Down

0 comments on commit fb06e9b

Please sign in to comment.