Skip to content

Commit

Permalink
- Exhumed: renamed disassembly variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 12, 2021
1 parent f7a475a commit d82b7ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/games/exhumed/src/object.cpp
Expand Up @@ -126,7 +126,7 @@ struct slideData
short nChannel;
short field_2a;
short field_4a;
short field_6a;
short nSprite;
short field_8a;

int field_0;
Expand Down Expand Up @@ -328,7 +328,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, slideData& w, slid
("channel", w.nChannel)
("at2a", w.field_2a)
("at4a", w.field_4a)
("at6a", w.field_6a)
("at6a", w.nSprite)
("at8a", w.field_8a)
.EndObject();
}
Expand Down Expand Up @@ -1112,7 +1112,7 @@ int BuildSlide(int nChannel, int nStartWall, int nWall1, int ecx, int nWall2, in

int nSprite = insertsprite(nSector, 899);

SlideData[nSlide].field_6a = nSprite;
SlideData[nSlide].nSprite = nSprite;
sprite[nSprite].cstat = 0x8000;
sprite[nSprite].x = wall[nStartWall].x;
sprite[nSprite].y = wall[nStartWall].y;
Expand Down Expand Up @@ -1155,7 +1155,7 @@ void FuncSlide(int a, int, int nRun)

if (SlideData[nSlide].field_8a != sRunChannels[nChannel].c)
{
D3PlayFX(StaticSound[kSound23], SlideData[nSlide].field_6a);
D3PlayFX(StaticSound[kSound23], SlideData[nSlide].nSprite);
SlideData[nSlide].field_8a = sRunChannels[nChannel].c;
}

Expand All @@ -1181,7 +1181,7 @@ void FuncSlide(int a, int, int nRun)
int var_24 = nSeekB;

dragpoint(SlideData[nSlide].field_4, x, y, 0);
movesprite(SlideData[nSlide].field_6a, var_34 << 14, var_2C << 14, 0, 0, 0, CLIPMASK1);
movesprite(SlideData[nSlide].nSprite, var_34 << 14, var_2C << 14, 0, 0, 0, CLIPMASK1);

if (var_34 == 0)
{
Expand Down Expand Up @@ -1284,7 +1284,7 @@ void FuncSlide(int a, int, int nRun)
runlist_SubRunRec(SlideData[nSlide].field_4a);

SlideData[nSlide].field_4a = -1;
D3PlayFX(StaticSound[nStopSound], SlideData[nSlide].field_6a);
D3PlayFX(StaticSound[nStopSound], SlideData[nSlide].nSprite);

runlist_ReadyChannel(nChannel);
}
Expand Down

0 comments on commit d82b7ff

Please sign in to comment.