fixed sub selection issue
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2416 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -84,9 +84,9 @@ void shiftweapon(int s)
|
||||
if(!num || curidx<0) return;
|
||||
int idx = (curidx+s) % num;
|
||||
if(idx<0) idx += num;
|
||||
if(idx!=player1->weaponsel->type) // different weapon
|
||||
weapon *next = availweapons[idx];
|
||||
if(next->type!=player1->weaponsel->type) // different weapon
|
||||
{
|
||||
weapon *next = availweapons[idx];
|
||||
selectweapon(next);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user