From 424e1ac7b1075b04fdb7d91ada243ecf380866e7 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 22 Nov 2017 20:21:02 -0600 Subject: [PATCH] Fix invalid model frame developer warnings in Team Arena Models for Team Arena's holdable medkit and invulnerability effects use the frames numbers from the player's torso but the actual models only have one frame (0). --- code/cgame/cg_players.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/cgame/cg_players.c b/code/cgame/cg_players.c index b803367f..4a4abaad 100644 --- a/code/cgame/cg_players.c +++ b/code/cgame/cg_players.c @@ -2508,6 +2508,8 @@ void CG_Player( centity_t *cent ) { memcpy(&powerup, &torso, sizeof(torso)); powerup.hModel = cgs.media.invulnerabilityPowerupModel; + powerup.frame = 0; + powerup.oldframe = 0; powerup.customSkin = 0; // always draw powerup.renderfx &= ~RF_THIRD_PERSON; @@ -2532,6 +2534,8 @@ void CG_Player( centity_t *cent ) { if ( ci->medkitUsageTime && t < 500 ) { memcpy(&powerup, &torso, sizeof(torso)); powerup.hModel = cgs.media.medkitUsageModel; + powerup.frame = 0; + powerup.oldframe = 0; powerup.customSkin = 0; // always draw powerup.renderfx &= ~RF_THIRD_PERSON;