mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- removed the second 'calculated' return value from the damage function call in GetMissileDamage as it is no longer needed or even code being generated for.
This commit is contained in:
parent
c3ae560289
commit
dbde0971ef
1 changed files with 4 additions and 5 deletions
|
@ -3197,14 +3197,13 @@ int AActor::GetMissileDamage (int mask, int add)
|
|||
}
|
||||
VMFrameStack stack;
|
||||
VMValue param = this;
|
||||
VMReturn results[2];
|
||||
VMReturn result;
|
||||
|
||||
int amount, calculated = false;
|
||||
int amount;
|
||||
|
||||
results[0].IntAt(&amount);
|
||||
results[1].IntAt(&calculated);
|
||||
result.IntAt(&amount);
|
||||
|
||||
if (stack.Call(DamageFunc, ¶m, 1, results, 2) < 1)
|
||||
if (stack.Call(DamageFunc, ¶m, 1, &result, 1) < 1)
|
||||
{ // No results
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue