[ioquake3] 08/12: Fix invalid model frame developer warnings in Team Arena
Simon McVittie
smcv at debian.org
Mon Nov 27 12:04:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag debian/1.36+u20171122_dfsg-1
in repository ioquake3.
commit 424e1ac7b1075b04fdb7d91ada243ecf380866e7
Author: Zack Middleton <zack at cloemail.com>
Date: Wed Nov 22 20:21:02 2017 -0600
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 b803367..4a4abaa 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list