mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Fix incorrect Wasp type being set. Will fix incorrectly sized Wasps (and behaviour?)
This commit is contained in:
parent
12fd1318d9
commit
a216d8745e
1 changed files with 4 additions and 5 deletions
|
@ -66,10 +66,9 @@ int BuildWasp(short nSprite, int x, int y, int z, short nSector, short nAngle)
|
||||||
short nWasp = nWaspCount;
|
short nWasp = nWaspCount;
|
||||||
nWaspCount++;
|
nWaspCount++;
|
||||||
|
|
||||||
// TODO - CHECKME
|
uint8_t bEggWasp = kFalse;
|
||||||
uint8_t bSomeType = kTrue;
|
|
||||||
if (nSprite == -2) {
|
if (nSprite == -2) {
|
||||||
bSomeType = kFalse;
|
bEggWasp = kTrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nSprite < 0)
|
if (nSprite < 0)
|
||||||
|
@ -92,7 +91,7 @@ int BuildWasp(short nSprite, int x, int y, int z, short nSector, short nAngle)
|
||||||
sprite[nSprite].pal = sector[sprite[nSprite].sectnum].ceilingpal;
|
sprite[nSprite].pal = sector[sprite[nSprite].sectnum].ceilingpal;
|
||||||
sprite[nSprite].clipdist = 70;
|
sprite[nSprite].clipdist = 70;
|
||||||
|
|
||||||
if (bSomeType)
|
if (bEggWasp)
|
||||||
{
|
{
|
||||||
sprite[nSprite].yrepeat = 20;
|
sprite[nSprite].yrepeat = 20;
|
||||||
sprite[nSprite].xrepeat = 20;
|
sprite[nSprite].xrepeat = 20;
|
||||||
|
@ -123,7 +122,7 @@ int BuildWasp(short nSprite, int x, int y, int z, short nSector, short nAngle)
|
||||||
WaspList[nWasp].nHealth = 800;
|
WaspList[nWasp].nHealth = 800;
|
||||||
WaspList[nWasp].field_16 = 10;
|
WaspList[nWasp].field_16 = 10;
|
||||||
|
|
||||||
if (bSomeType)
|
if (bEggWasp)
|
||||||
{
|
{
|
||||||
WaspList[nWasp].field_C = 60;
|
WaspList[nWasp].field_C = 60;
|
||||||
WaspList[nWasp].field_16 = (WaspList[nWasp].field_16 - 1) >> 1;
|
WaspList[nWasp].field_16 = (WaspList[nWasp].field_16 - 1) >> 1;
|
||||||
|
|
Loading…
Reference in a new issue