mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 11:50:49 +00:00
- Blood: Fix angle issues with NHIS.
This commit is contained in:
parent
9432f9ec90
commit
c62e5db2bc
1 changed files with 12 additions and 3 deletions
|
@ -2398,7 +2398,10 @@ void useTeleportTarget(XSPRITE* pXSource, spritetype* pSprite) {
|
||||||
|
|
||||||
if (pXSource->data2 == 1) {
|
if (pXSource->data2 == 1) {
|
||||||
|
|
||||||
if (pPlayer) pPlayer->angle.ang = buildang(pSource->ang);
|
if (pPlayer) {
|
||||||
|
pPlayer->angle.settarget(pSource->ang);
|
||||||
|
setForcedSyncInput();
|
||||||
|
}
|
||||||
else if (isDude) xsprite[pSprite->extra].goalAng = pSprite->ang = pSource->ang;
|
else if (isDude) xsprite[pSprite->extra].goalAng = pSprite->ang = pSource->ang;
|
||||||
else pSprite->ang = pSource->ang;
|
else pSprite->ang = pSource->ang;
|
||||||
}
|
}
|
||||||
|
@ -4687,8 +4690,14 @@ bool modernTypeOperateSprite(int nSprite, spritetype* pSprite, XSPRITE* pXSprite
|
||||||
case 9: // 73 (set player's sprite angle, TO-DO: if tx > 0, take a look on TX ID sprite)
|
case 9: // 73 (set player's sprite angle, TO-DO: if tx > 0, take a look on TX ID sprite)
|
||||||
//data4 is reserved
|
//data4 is reserved
|
||||||
if (pXSprite->data4 != 0) break;
|
if (pXSprite->data4 != 0) break;
|
||||||
else if (pSprite->flags & kModernTypeFlag1) pPlayer->angle.ang = buildang(pSprite->ang);
|
else if (pSprite->flags & kModernTypeFlag1) {
|
||||||
else if (valueIsBetween(pXSprite->data2, -kAng360, kAng360)) pPlayer->angle.ang = buildang(pXSprite->data2);
|
pPlayer->angle.settarget(pSprite->ang);
|
||||||
|
setForcedSyncInput();
|
||||||
|
}
|
||||||
|
else if (valueIsBetween(pXSprite->data2, -kAng360, kAng360)) {
|
||||||
|
pPlayer->angle.settarget(pXSprite->data2);
|
||||||
|
setForcedSyncInput();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 10: // 74 (print the book)
|
case 10: // 74 (print the book)
|
||||||
// data2: RFF TXT id
|
// data2: RFF TXT id
|
||||||
|
|
Loading…
Reference in a new issue