global ban time switch, and fix previous weapon in camera mode (related to nades).
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5773 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+1
-1
@@ -482,7 +482,7 @@ public:
|
||||
curskin = nextskin[team_base(team)];
|
||||
}
|
||||
|
||||
void selectweapon(int w) { prevweaponsel = weaponsel = weapons[(gunselect = w)]; }
|
||||
void selectweapon(int w) { if (weaponsel) prevweaponsel = weaponsel; weaponsel = weapons[(gunselect = w)]; if (!prevweaponsel) prevweaponsel = weaponsel; }
|
||||
void setprimary(int w) { primweap = weapons[(primary = w)]; }
|
||||
void setnextprimary(int w) { nextprimweap = weapons[(nextprimary = w)]; }
|
||||
bool isspectating() { return state==CS_SPECTATE || (state==CS_DEAD && spectatemode > SM_NONE); }
|
||||
|
||||
Reference in New Issue
Block a user