git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4899 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-05-17 18:24:17 +00:00
parent 24cde7a695
commit c42b53cbce
10 changed files with 101 additions and 83 deletions
+2 -2
View File
@@ -797,8 +797,8 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_LMSITEM:
{
const char *names[] = { "no items", "pistol clips", "ammoboxes", "grenades", "health packs", "armour", "akimbo" };
const int types[] = { NOTUSED, I_CLIPS, I_AMMO, I_GRENADE, I_HEALTH, I_ARMOUR, I_AKIMBO }, types_n = sizeof(types) / sizeof(types[0]);
const char *names[] = { "no items", "pistol clips", "ammoboxes", "grenades", "health packs", "helmet", "armour", "akimbo" };
const int types[] = { NOTUSED, I_CLIPS, I_AMMO, I_GRENADE, I_HEALTH, I_HELMET, I_ARMOUR, I_AKIMBO }, types_n = sizeof(types) / sizeof(types[0]);
int cmd = getint(p), typ = getint(p);
int n = 0;
loopi(types_n) if(typ == types[i]) n = i;