mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-28 22:52:26 +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,6 +1098,7 @@ void() ImpulseCommands =
|
|||
}
|
||||
self.impulse = 0;
|
||||
|
||||
if (fl) {
|
||||
if (!(self.items & fl)) { // don't have the weapon or the ammo
|
||||
sprint (self, PRINT_HIGH, "no weapon.\n");
|
||||
return;
|
||||
|
@ -1111,6 +1112,7 @@ void() ImpulseCommands =
|
|||
// set weapon, set ammo
|
||||
self.weapon = fl;
|
||||
W_SetCurrentAmmo ();
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue