mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
- some remaining sprite[] access in ai.cpp
# Conflicts: # source/games/blood/src/ai.cpp
This commit is contained in:
parent
f712a674ce
commit
9b4ee3dc2c
1 changed files with 6 additions and 6 deletions
|
@ -166,16 +166,16 @@ bool CanMove(DBloodActor *actor, DBloodActor* target, int nAngle, int nRange)
|
|||
if (sector[nSector].type == kSectorDamage || pXSector->damageType > 0)
|
||||
Crusher = 1;
|
||||
}
|
||||
int nUpper = gUpperLink[nSector];
|
||||
int nLower = gLowerLink[nSector];
|
||||
if (nUpper >= 0)
|
||||
auto Upper = getUpperLink(nSector);
|
||||
auto Lower = getLowerLink(nSector);
|
||||
if (Upper != nullptr)
|
||||
{
|
||||
if (sprite[nUpper].type == kMarkerUpWater || sprite[nUpper].type == kMarkerUpGoo)
|
||||
if (Upper->s().type == kMarkerUpWater || Upper->s().type == kMarkerUpGoo)
|
||||
Water = Depth = 1;
|
||||
}
|
||||
if (nLower >= 0)
|
||||
if (Lower != nullptr)
|
||||
{
|
||||
if (sprite[nLower].type == kMarkerLowWater || sprite[nLower].type == kMarkerLowGoo)
|
||||
if (Lower->s().type == kMarkerLowWater || Lower->s().type == kMarkerLowGoo)
|
||||
Depth = 1;
|
||||
}
|
||||
switch (pSprite->type) {
|
||||
|
|
Loading…
Reference in a new issue