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).
This commit is contained in:
Zack Middleton 2017-11-22 20:21:02 -06:00
parent d40b047f13
commit 424e1ac7b1

View file

@ -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;