You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and turn the prints into warnings
moved the commented out assertions to where they were before
commit c22965b
so the code is a bit closer to the original (and the SDK)
if ( mdl != NULL && ( end - start ).LengthSqr() > Square( CM_MAX_TRACE_DIST ) ) {
968
+
#ifndef CTF
969
+
// May be important: This occurs in CTF when a player connects and spawns
970
+
// in the PVS of a player that has a flag that is spawning the idMoveableItem
971
+
// "nuggets". The error seems benign and the assert was getting in the way
972
+
// of testing.
973
+
// assert( 0 ); DG: this was annoying and not really necessary, a Warning should suffice.
974
+
#endif
975
+
968
976
results.fraction = 0.0f;
969
977
results.endpos = start;
970
978
results.endAxis = trmAxis;
971
979
memset( &results.c, 0, sizeof( results.c ) );
972
980
results.c.point = start;
973
981
974
982
if ( mdl->GetEntity() ) {
975
-
gameLocal.Printf( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
983
+
gameLocal.Warning( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
976
984
} else {
977
-
gameLocal.Printf( "huge translation for clip model %d\n", mdl->GetId() );
985
+
gameLocal.Warning( "huge translation for clip model %d\n", mdl->GetId() );
978
986
}
979
-
gameLocal.Printf( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
987
+
gameLocal.Warning( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
980
988
981
-
#ifndef CTF
982
-
// May be important: This occurs in CTF when a player connects and spawns
983
-
// in the PVS of a player that has a flag that is spawning the idMoveableItem
984
-
// "nuggets". The error seems benign and the assert was getting in the way
gameLocal.Printf( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
978
+
gameLocal.Warning( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
979
979
} else {
980
-
gameLocal.Printf( "huge translation for clip model %d\n", mdl->GetId() );
980
+
gameLocal.Warning( "huge translation for clip model %d\n", mdl->GetId() );
981
981
}
982
982
983
-
gameLocal.Printf( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
984
-
985
-
if ( mdl->GetEntity() != NULL && idStr::Cmp(mdl->GetEntity()->GetName(), "monster_zsec_shotgun_12") == 0
0 commit comments