mirror of
https://git.code.sf.net/p/quake/game-source
synced 2025-04-15 20:24:36 +00:00
this should fix the "no weapon" spam
This commit is contained in:
parent
a5f350679e
commit
8e92d4c421
1 changed files with 11 additions and 12 deletions
|
@ -1084,19 +1084,18 @@ 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 (am) {
|
||||
// don't have the ammo
|
||||
sprint (self, PRINT_HIGH, "not enough ammo.\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;
|
||||
}
|
||||
// set weapon, set ammo
|
||||
self.weapon = fl;
|
||||
W_SetCurrentAmmo ();
|
||||
|
|
Loading…
Reference in a new issue