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:
driAn
2008-08-27 18:50:23 +00:00
parent f28daad05f
commit 7d1a881d7e
+2 -2
View File
@@ -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);
}
}