case 1:
if (!gamestate.ammo)
{ // can only happen with chain gun
gamestate.attackframe++;
break;
}
GunAttack(ob);
switch (gamestate.weapon)
{
case wp_pistol:
case wp_machinegun:
case wp_chaingun:
gamestate.ammo--;
break;
case wp_special1:
case wp_special2:
gamestate.ammo2--;
break;
}
DrawAmmo()
break;
Does it look something like thay?