mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-25 05:11:58 +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;
|
||||
|
||||
if (!(self.items & fl)) { // don't have the weapon or the ammo
|
||||
sprint (self, PRINT_HIGH, "no weapon.\n");
|
||||
return;
|
||||
}
|
||||
if (fl) {
|
||||
if (!(self.items & fl)) { // don't have the weapon or the ammo
|
||||
sprint (self, PRINT_HIGH, "no weapon.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (am) { // don't have the ammo
|
||||
sprint (self, PRINT_HIGH, "not enough ammo.\n");
|
||||
return;
|
||||
}
|
||||
if (am) { // don't have the ammo
|
||||
sprint (self, PRINT_HIGH, "not enough ammo.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
// set weapon, set ammo
|
||||
self.weapon = fl;
|
||||
W_SetCurrentAmmo ();
|
||||
// set weapon, set ammo
|
||||
self.weapon = fl;
|
||||
W_SetCurrentAmmo ();
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue