Fix a buglet with weapon selection.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2003-03-03 22:42:35 +00:00
parent 31a1ed87a2
commit 242f727b9c

View file

@ -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 ();
}
};
/*