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