8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74cffed commit 6865a12Copy full SHA for 6865a12
code/cgame/cg_view.c
@@ -79,6 +79,7 @@ can then be moved around
79
void CG_TestModel_f (void) {
80
vec3_t angles;
81
82
+ cg.testGun = qfalse;
83
memset( &cg.testModelEntity, 0, sizeof(cg.testModelEntity) );
84
if ( trap_Argc() < 2 ) {
85
return;
@@ -104,7 +105,6 @@ void CG_TestModel_f (void) {
104
105
angles[ROLL] = 0;
106
107
AnglesToAxis( angles, cg.testModelEntity.axis );
- cg.testGun = qfalse;
108
}
109
110
/*
@@ -127,6 +127,11 @@ Replaces the current view weapon with the given model
127
*/
128
void CG_TestGun_f (void) {
129
CG_TestModel_f();
130
+
131
+ if ( !cg.testModelEntity.hModel ) {
132
+ return;
133
+ }
134
135
cg.testGun = qtrue;
136
cg.testModelEntity.renderfx = RF_DEPTHHACK | RF_NO_MIRROR;
137
0 commit comments