Skip to content

Commit

Permalink
- Exhumed: fix position init in BuildfRat
Browse files Browse the repository at this point in the history
This is only the cheat case, which is why this wasn’t detected earlier.
  • Loading branch information
coelckers committed Aug 5, 2022
1 parent 7e36e57 commit c5ec2af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/games/exhumed/src/rat.cpp
Expand Up @@ -89,6 +89,9 @@ void BuildRat(DExhumedActor* pActor, int x, int y, int z, sectortype* pSector, i
ChangeActorStat(pActor, 108);
}

pActor->spr.pos.X = x;
pActor->spr.pos.Y = y;
pActor->spr.pos.Z = z;
pActor->spr.cstat = CSTAT_SPRITE_BLOCK_ALL;
pActor->spr.shade = -12;
pActor->spr.xoffset = 0;
Expand Down

0 comments on commit c5ec2af

Please sign in to comment.