Counter-Strike: Made '0' work in text-based menus.

This commit is contained in:
Marco Cawthorne 2020-04-23 05:25:51 +02:00
parent 747639af4d
commit ae7da17d0f
1 changed files with 40 additions and 1 deletions

View File

@ -116,7 +116,7 @@ BUY(int n)
case 8:
Textmenu_Call(inteam == TEAM_T ? "DT_BUYITEM" : "DCT_BUYITEM");
break;
case 0:
case 10:
Textmenu_Call("");
break;
}
@ -145,6 +145,9 @@ DT_BUYITEM(int n)
case 7:
sendevent("BuyEquipment", "f", 6);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -176,6 +179,9 @@ DCT_BUYITEM(int n)
case 7:
sendevent("BuyEquipment", "f", 6);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -203,6 +209,9 @@ T_BUYPISTOL(int n)
case 5:
sendevent("BuyWeapon", "f", WEAPON_ELITES);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -228,6 +237,9 @@ CT_BUYPISTOL(int n)
case 6:
sendevent("BuyWeapon", "f", WEAPON_FIVESEVEN);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -246,6 +258,9 @@ BUYSHOTGUN(int n)
case 2:
sendevent("BuyWeapon", "f", WEAPON_XM1014);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -273,6 +288,9 @@ T_BUYRIFLE(int n)
case 7:
sendevent("BuyWeapon", "f", WEAPON_G3SG1);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -301,6 +319,9 @@ CT_BUYRIFLE(int n)
case 8:
sendevent("BuyWeapon", "f", WEAPON_SG550);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -325,6 +346,9 @@ T_BUYSUBMACHINEGUN(int n)
case 5:
sendevent("BuyWeapon", "f", WEAPON_UMP45);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -347,6 +371,9 @@ CT_BUYSUBMACHINEGUN(int n)
case 5:
sendevent("BuyWeapon", "f", WEAPON_UMP45);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -362,6 +389,9 @@ BUYMACHINEGUN(int n)
case 1:
sendevent("BuyWeapon", "f", WEAPON_PARA);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -392,6 +422,9 @@ RADIOA(int n)
case 6:
sendevent("Radio", "f", RADIO_FIREASSIS);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -421,6 +454,9 @@ RADIOB(int n)
case 6:
sendevent("Radio", "f", RADIO_COM_REPORTIN);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}
@ -459,6 +495,9 @@ RADIOC(int n)
case 9:
sendevent("Radio", "f", RADIO_ENEMYDOWN);
break;
case 10:
Textmenu_Call("");
break;
default:
return;
}