mirror of
https://git.code.sf.net/p/quake/game-source
synced 2025-02-18 01:41:41 +00:00
Fix a buglet with weapon selection.
This commit is contained in:
parent
31a1ed87a2
commit
242f727b9c
1 changed files with 13 additions and 11 deletions
|
@ -1098,19 +1098,21 @@ void() ImpulseCommands =
|
||||||
}
|
}
|
||||||
self.impulse = 0;
|
self.impulse = 0;
|
||||||
|
|
||||||
if (!(self.items & fl)) { // don't have the weapon or the ammo
|
if (fl) {
|
||||||
sprint (self, PRINT_HIGH, "no weapon.\n");
|
if (!(self.items & fl)) { // don't have the weapon or the ammo
|
||||||
return;
|
sprint (self, PRINT_HIGH, "no weapon.\n");
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (am) { // don't have the ammo
|
if (am) { // don't have the ammo
|
||||||
sprint (self, PRINT_HIGH, "not enough ammo.\n");
|
sprint (self, PRINT_HIGH, "not enough ammo.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set weapon, set ammo
|
// set weapon, set ammo
|
||||||
self.weapon = fl;
|
self.weapon = fl;
|
||||||
W_SetCurrentAmmo ();
|
W_SetCurrentAmmo ();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue