mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- two missed lines
This commit is contained in:
parent
5b057415da
commit
ce622c9c88
1 changed files with 2 additions and 2 deletions
|
@ -1643,7 +1643,7 @@ static void scaleDamage(DBloodActor* actor)
|
|||
}
|
||||
|
||||
// take in account yrepeat of sprite
|
||||
short yrepeat = sprite[pXSprite->reference].yrepeat;
|
||||
short yrepeat = actor->s().yrepeat;
|
||||
if (yrepeat < 64)
|
||||
{
|
||||
for (int i = 0; i < kDmgMax; i++) curScale[i] += (64 - yrepeat);
|
||||
|
@ -1654,7 +1654,7 @@ static void scaleDamage(DBloodActor* actor)
|
|||
}
|
||||
|
||||
// take surface type into account
|
||||
int surfType = tileGetSurfType(sprite[pXSprite->reference].index + 0xc000);
|
||||
int surfType = tileGetSurfType(actor->s().picnum);
|
||||
switch (surfType)
|
||||
{
|
||||
case 1: // stone
|
||||
|
|
Loading…
Reference in a new issue