mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- 3 more wrappers gone.
This commit is contained in:
parent
8f754d163d
commit
ac5ea2f1c9
5 changed files with 7 additions and 29 deletions
|
@ -141,7 +141,6 @@ void SetDispatcher()
|
|||
floorspace_d,
|
||||
addweapon_d,
|
||||
hitradius_d,
|
||||
movesprite_d,
|
||||
lotsofmoney_d,
|
||||
lotsofmail_d,
|
||||
lotsofpaper_d,
|
||||
|
@ -189,7 +188,6 @@ void SetDispatcher()
|
|||
floorspace_r,
|
||||
addweapon_r,
|
||||
hitradius_r,
|
||||
movesprite_r,
|
||||
lotsoffeathers_r,
|
||||
lotsoffeathers_r,
|
||||
lotsoffeathers_r,
|
||||
|
|
|
@ -87,7 +87,6 @@ struct Dispatcher
|
|||
bool (*floorspace)(int sectnum);
|
||||
void (*addweapon)(struct player_struct *p, int weapon);
|
||||
void (*hitradius)(DDukeActor* i, int r, int hp1, int hp2, int hp3, int hp4);
|
||||
int (*movesprite)(int spritenum, int xchange, int ychange, int zchange, unsigned int cliptype);
|
||||
void (*lotsofmoney)(DDukeActor *s, short n);
|
||||
void (*lotsofmail)(DDukeActor *s, short n);
|
||||
void (*lotsofpaper)(DDukeActor *s, short n);
|
||||
|
|
|
@ -199,20 +199,6 @@ inline int ssp(int i, unsigned int cliptype) //The set sprite function
|
|||
int movesprite_ex_d(DDukeActor* actor, int xchange, int ychange, int zchange, unsigned int cliptype, Collision& result);
|
||||
int movesprite_ex_r(DDukeActor* actor, int xchange, int ychange, int zchange, unsigned int cliptype, Collision& result);
|
||||
|
||||
inline int movesprite_d(int actor, int xchange, int ychange, int zchange, unsigned int cliptype)
|
||||
{
|
||||
Collision c;
|
||||
movesprite_ex_d(&hittype[actor], xchange, ychange, zchange, cliptype, c);
|
||||
return c.legacyVal;
|
||||
}
|
||||
|
||||
inline int movesprite_r(int actor, int xchange, int ychange, int zchange, unsigned int cliptype)
|
||||
{
|
||||
Collision c;
|
||||
movesprite_ex_r(&hittype[actor], xchange, ychange, zchange, cliptype, c);
|
||||
return c.legacyVal;
|
||||
}
|
||||
|
||||
inline int movesprite_ex(DDukeActor* actor, int xchange, int ychange, int zchange, unsigned int cliptype, Collision& result)
|
||||
{
|
||||
auto f = isRR() ? movesprite_ex_r : movesprite_ex_d;
|
||||
|
@ -233,11 +219,6 @@ inline void getzrange_ex(int x, int y, int z, int16_t sectnum, int32_t* ceilz, C
|
|||
florhit.setFromEngine(fh);
|
||||
}
|
||||
|
||||
inline int findplayer(spritetype* act, int* x)
|
||||
{
|
||||
return findplayer(&hittype[act - sprite], x);
|
||||
}
|
||||
|
||||
inline int hitscan(int x, int y, int z, int16_t sectnum, int32_t vx, int32_t vy, int32_t vz,
|
||||
short* hitsect, short* hitwall, DDukeActor** hitspr, int* hitx, int* hity, int* hitz, uint32_t cliptype)
|
||||
{
|
||||
|
|
|
@ -107,7 +107,7 @@ static void shootfireball(DDukeActor *actor, int p, int sx, int sy, int sz, int
|
|||
{
|
||||
sa += 16 - (krand() & 31);
|
||||
int scratch;
|
||||
int j = findplayer(s, &scratch);
|
||||
int j = findplayer(actor, &scratch);
|
||||
zvel = (((ps[j].oposz - sz + (3 << 8))) * vel) / ldist(ps[j].GetActor(), actor);
|
||||
}
|
||||
else
|
||||
|
@ -245,7 +245,7 @@ static void shootknee(DDukeActor* actor, int p, int sx, int sy, int sz, int sa)
|
|||
else
|
||||
{
|
||||
int x;
|
||||
auto pactor = ps[findplayer(s, &x)].GetActor();
|
||||
auto pactor = ps[findplayer(actor, &x)].GetActor();
|
||||
zvel = ((pactor->s.z - sz) << 8) / (x + 1);
|
||||
sa = getangle(pactor->s.x - sx, pactor->s.y - sy);
|
||||
}
|
||||
|
@ -952,7 +952,7 @@ static void shootgrowspark(DDukeActor* actor, int p, int sx, int sy, int sz, int
|
|||
else
|
||||
{
|
||||
int x;
|
||||
int j = findplayer(s, &x);
|
||||
int j = findplayer(actor, &x);
|
||||
sz -= (4 << 8);
|
||||
zvel = ((ps[j].posz - sz) << 8) / (ldist(ps[p].GetActor(), actor));
|
||||
zvel += 128 - (krand() & 255);
|
||||
|
|
|
@ -106,7 +106,7 @@ static void shootmelee(DDukeActor *actor, int p, int sx, int sy, int sz, int sa,
|
|||
else
|
||||
{
|
||||
int x;
|
||||
auto pspr = ps[findplayer(s, &x)].GetActor();
|
||||
auto pspr = ps[findplayer(actor, &x)].GetActor();
|
||||
zvel = ((pspr->s.z - sz) << 8) / (x + 1);
|
||||
sa = getangle(pspr->s.x - sx, pspr->s.y - sy);
|
||||
}
|
||||
|
@ -528,7 +528,7 @@ static void shootstuff(DDukeActor* actor, int p, int sx, int sy, int sz, int sa,
|
|||
else
|
||||
{
|
||||
int x;
|
||||
int j = findplayer(s, &x);
|
||||
int j = findplayer(actor, &x);
|
||||
// sa = getangle(ps[j].oposx-sx,ps[j].oposy-sy);
|
||||
if (s->picnum == HULK)
|
||||
sa -= (krand() & 31);
|
||||
|
@ -651,7 +651,7 @@ static void shootrpg(DDukeActor* actor, int p, int sx, int sy, int sz, int sa, i
|
|||
else
|
||||
{
|
||||
int x;
|
||||
int j = findplayer(s, &x);
|
||||
int j = findplayer(actor, &x);
|
||||
sa = getangle(ps[j].oposx - sx, ps[j].oposy - sy);
|
||||
if (s->picnum == BOSS3)
|
||||
sz -= (32 << 8);
|
||||
|
@ -795,7 +795,7 @@ static void shootwhip(DDukeActor* actor, int p, int sx, int sy, int sz, int sa,
|
|||
else
|
||||
{
|
||||
int x;
|
||||
int j = findplayer(s, &x);
|
||||
int j = findplayer(actor, &x);
|
||||
// sa = getangle(ps[j].oposx-sx,ps[j].oposy-sy);
|
||||
if (s->picnum == VIXEN)
|
||||
sa -= (krand() & 16);
|
||||
|
|
Loading…
Reference in a new issue