mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-25 21:41:35 +00:00
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:
parent
d40b047f13
commit
424e1ac7b1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue