- initialize the new temporary actor properties to something useful.

This commit is contained in:
Christoph Oelckers 2022-12-28 23:00:37 +01:00
parent 5da28bf5ad
commit 608b4e8e0f
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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;