mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-03 09:32:19 +00:00
- fixed parameter ordering for WW2GI's change weapon event call.
This happens when variables are ambiguously named... :?
This commit is contained in:
parent
99e3eeb19e
commit
05c095e448
2 changed files with 8 additions and 9 deletions
|
@ -170,16 +170,16 @@ void checkavailweapon(struct player_struct* p)
|
|||
p->curr_weapon = weap;
|
||||
if (isWW2GI())
|
||||
{
|
||||
SetGameVarID(g_iWeaponVarID, p->curr_weapon, snum, p->i);
|
||||
SetGameVarID(g_iWeaponVarID, p->curr_weapon, p->i, snum); // snum is playerindex!
|
||||
if (p->curr_weapon >= 0)
|
||||
{
|
||||
SetGameVarID(g_iWorksLikeVarID, aplWeaponWorksLike[p->curr_weapon][snum], snum, p->i);
|
||||
SetGameVarID(g_iWorksLikeVarID, aplWeaponWorksLike[p->curr_weapon][snum], p->i, snum);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetGameVarID(g_iWorksLikeVarID, -1, snum, p->i);
|
||||
SetGameVarID(g_iWorksLikeVarID, -1, p->i, snum);
|
||||
}
|
||||
OnEvent(EVENT_CHANGEWEAPON, p->i, snum, -1);
|
||||
OnEvent(EVENT_CHANGEWEAPON, snum, p->i, -1);
|
||||
}
|
||||
|
||||
p->okickback_pic = p->kickback_pic = 0;
|
||||
|
|
|
@ -469,7 +469,7 @@ static void shootstuff(int i, int p, int sx, int sy, int sz, int sa, int atwith)
|
|||
spritetype* const s = &sprite[i];
|
||||
int sect = s->sectnum;
|
||||
int vel, zvel;
|
||||
short l, j, scount;
|
||||
short j, scount;
|
||||
|
||||
if (isRRRA())
|
||||
{
|
||||
|
@ -764,7 +764,7 @@ static void shootwhip(int i, int p, int sx, int sy, int sz, int sa, int atwith)
|
|||
spritetype* const s = &sprite[i];
|
||||
int sect = s->sectnum;
|
||||
int vel, zvel;
|
||||
short l, j, scount;
|
||||
short j, scount;
|
||||
|
||||
if (s->extra >= 0) s->shade = -96;
|
||||
|
||||
|
@ -837,9 +837,8 @@ static void shootwhip(int i, int p, int sx, int sy, int sz, int sa, int atwith)
|
|||
|
||||
void shoot_r(int i, int atwith)
|
||||
{
|
||||
short sect, hitsect, hitspr, hitwall, l, sa, p, j, k, scount;
|
||||
int sx, sy, sz, vel, zvel, hitx, hity, hitz, x, oldzvel, dal;
|
||||
uint8_t sizx, sizy;
|
||||
short sect, sa, p, j;
|
||||
int sx, sy, sz, vel, zvel, x;
|
||||
spritetype* s;
|
||||
|
||||
s = &sprite[i];
|
||||
|
|
Loading…
Reference in a new issue