diff --git a/code/cgame/cg_draw.c b/code/cgame/cg_draw.c
index b103544..649c254 100644
a
|
b
|
static void CG_SetupItemMenu(void){ |
3799 | 3799 | (item->giTag == PW_BELT && cg.snap->ps.powerups[PW_BELT] && item->giType == IT_POWERUP) || |
3800 | 3800 | (item->giType == IT_ARMOR && cg.snap->ps.stats[STAT_ARMOR])|| |
3801 | 3801 | (item->giType == IT_POWERUP && item->giTag == PW_SCOPE && cg.snap->ps.powerups[PW_SCOPE]) || |
3802 | | (((item->giTag == WP_DYNAMITE || item->giTag == WP_KNIFE || WP_MOLOTOV) && item->giType == IT_WEAPON) && |
| 3802 | (((item->giTag == WP_DYNAMITE || item->giTag == WP_KNIFE || item->giTag == WP_MOLOTOV) && item->giType == IT_WEAPON) && |
3803 | 3803 | cg.snap->ps.ammo[item->giTag] >= bg_weaponlist[item->giTag].maxAmmo))) |
3804 | 3804 | { |
3805 | 3805 | menu_items[count].inventory = qtrue; |
… |
… |
static void CG_DrawBuyMenu( void ) { |
4135 | 4135 | && item->weapon_sort != WS_MISC){ |
4136 | 4136 | return; |
4137 | 4137 | } |
4138 | | } |
4139 | | if(item->giTag == PW_BELT && cg.snap->ps.powerups[PW_BELT]) |
4140 | | return; |
4141 | | if(item->giType == IT_ARMOR && cg.snap->ps.stats[STAT_ARMOR]) |
4142 | | return; |
4143 | | if(item->giTag == PW_SCOPE && cg.snap->ps.powerups[PW_SCOPE]) |
4144 | | return; |
4145 | | |
| 4138 | } else { |
| 4139 | if(item->giTag == PW_BELT && cg.snap->ps.powerups[PW_BELT]) |
| 4140 | return; |
| 4141 | if(item->giType == IT_ARMOR && cg.snap->ps.stats[STAT_ARMOR]) |
| 4142 | return; |
| 4143 | if(item->giTag == PW_SCOPE && cg.snap->ps.powerups[PW_SCOPE]) |
| 4144 | return; |
| 4145 | } |
4146 | 4146 | trap_SendConsoleCommand(va("cg_buy %s\n", item->classname)); |
4147 | 4147 | // trap_S_StartSound(NULL, cg.snap->ps.clientNum, CHAN_WEAPON, cgs.media.buySound); |
4148 | 4148 | cg.oldbutton = qtrue; |