Skip to content

Commit

Permalink
- sanitized callback interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 14, 2021
1 parent 143e947 commit add3684
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 161 deletions.
5 changes: 4 additions & 1 deletion source/games/blood/src/ai.cpp
Expand Up @@ -154,7 +154,10 @@ bool CanMove(DBloodActor* actor, DBloodActor* target, int nAngle, int nRange)
return false;
int floorZ = getflorzofslope(nSector, x, y);
int nXSector = sector[nSector].extra;
char Underwater = 0; char Water = 0; char Depth = 0; char Crusher = 0;
bool Underwater = 0;
bool Water = 0;
bool Depth = 0;
bool Crusher = 0;
XSECTOR* pXSector = NULL;
if (nXSector > 0)
{
Expand Down
1 change: 1 addition & 0 deletions source/games/blood/src/bloodactor.h
Expand Up @@ -37,6 +37,7 @@ class DBloodActor
int& xvel() { return Blood::xvel[index]; }
int& yvel() { return Blood::yvel[index]; }
int& zvel() { return Blood::zvel[index]; }
int GetIndex() { return s().index; } // this is for error printing only!

GENDUDEEXTRA& genDudeExtra() { return Blood::gGenDudeExtra[index]; }
POINT3D& basePoint() { return Blood::baseSprite[index]; }
Expand Down

0 comments on commit add3684

Please sign in to comment.