Skip to content

Commit ae75f4c

Browse files
Merge remote-tracking branch 'dhewm3/master'
2 parents 5cc7b26 + 0ecf60c commit ae75f4c

File tree

6 files changed

+26
-29
lines changed

6 files changed

+26
-29
lines changed

dist/linux/share/applications/org.dhewm3.Dhewm3.d3xp.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Comment=dhewm 3 is a Doom 3 GPL source port
33
Categories=Game;Shooter;
4-
Exec=dhewm3 +set fs_game d3xp "\\$@"
4+
Exec=dhewm3 +set fs_game d3xp
55
Icon=org.dhewm3.Dhewm3
66
Name=Dhewm3 XP
77
StartupNotify=true

dist/linux/share/applications/org.dhewm3.Dhewm3.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Comment=dhewm 3 is a Doom 3 GPL source port
33
Categories=Game;Shooter;
4-
Exec=dhewm3 "\\$@"
4+
Exec=dhewm3
55
Icon=org.dhewm3.Dhewm3
66
Name=Dhewm3
77
StartupNotify=true

neo/d3xp/ai/AI_pathing.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,11 @@ bool FindOptimalPath( const pathNode_t *root, const obstacle_t *obstacles, int n
900900
}
901901

902902
if ( !pathToGoalExists ) {
903-
seekPos.ToVec2() = root->children[0]->pos;
903+
if ( root->children[0] != NULL ) {
904+
seekPos.ToVec2() = root->children[0]->pos;
905+
} else {
906+
seekPos.ToVec2() = root->pos;
907+
}
904908
} else if ( !optimizedPathCalculated ) {
905909
OptimizePath( root, bestNode, obstacles, numObstacles, optimizedPath );
906910
seekPos.ToVec2() = optimizedPath[1];

neo/d3xp/physics/Clip.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -963,27 +963,27 @@ idClip::TestHugeTranslation
963963
*/
964964
ID_INLINE bool TestHugeTranslation( trace_t &results, const idClipModel *mdl, const idVec3 &start, const idVec3 &end, const idMat3 &trmAxis ) {
965965
if ( mdl != NULL && ( end - start ).LengthSqr() > Square( CM_MAX_TRACE_DIST ) ) {
966+
#ifndef CTF
967+
// May be important: This occurs in CTF when a player connects and spawns
968+
// in the PVS of a player that has a flag that is spawning the idMoveableItem
969+
// "nuggets". The error seems benign and the assert was getting in the way
970+
// of testing.
971+
// assert( 0 ); DG: this was annoying and not really necessary, a Warning should suffice.
972+
#endif
973+
966974
results.fraction = 0.0f;
967975
results.endpos = start;
968976
results.endAxis = trmAxis;
969977
memset( &results.c, 0, sizeof( results.c ) );
970978
results.c.point = start;
971979

972980
if ( mdl->GetEntity() ) {
973-
gameLocal.Printf( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
981+
gameLocal.Warning( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
974982
} else {
975-
gameLocal.Printf( "huge translation for clip model %d\n", mdl->GetId() );
983+
gameLocal.Warning( "huge translation for clip model %d\n", mdl->GetId() );
976984
}
985+
gameLocal.Warning( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
977986

978-
gameLocal.Printf( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
979-
980-
#ifndef CTF
981-
// May be important: This occurs in CTF when a player connects and spawns
982-
// in the PVS of a player that has a flag that is spawning the idMoveableItem
983-
// "nuggets". The error seems benign and the assert was getting in the way
984-
// of testing.
985-
assert( 0 );
986-
#endif
987987
return true;
988988
}
989989
return false;

neo/game/ai/AI_pathing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -900,10 +900,10 @@ bool FindOptimalPath( const pathNode_t *root, const obstacle_t *obstacles, int n
900900
}
901901

902902
if ( !pathToGoalExists ) {
903-
if ( !root->children[0] ) {
904-
seekPos.ToVec2() = root->pos;
905-
} else {
903+
if ( root->children[0] != NULL ) {
906904
seekPos.ToVec2() = root->children[0]->pos;
905+
} else {
906+
seekPos.ToVec2() = root->pos;
907907
}
908908
} else if ( !optimizedPathCalculated ) {
909909
OptimizePath( root, bestNode, obstacles, numObstacles, optimizedPath );

neo/game/physics/Clip.cpp

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,8 @@ idClip::TestHugeTranslation
963963
*/
964964
ID_INLINE bool TestHugeTranslation( trace_t &results, const idClipModel *mdl, const idVec3 &start, const idVec3 &end, const idMat3 &trmAxis ) {
965965
if ( mdl != NULL && ( end - start ).LengthSqr() > Square( CM_MAX_TRACE_DIST ) ) {
966+
// assert( 0 ); DG: this was annoying and not really necessary, a Warning should suffice.
967+
966968
results.fraction = 0.0f;
967969
results.endpos = start;
968970
results.endAxis = trmAxis;
@@ -971,22 +973,13 @@ ID_INLINE bool TestHugeTranslation( trace_t &results, const idClipModel *mdl, co
971973
results.c.entityNum = ENTITYNUM_WORLD;
972974

973975
if ( mdl->GetEntity() ) {
974-
gameLocal.Printf( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
976+
gameLocal.Warning( "huge translation for clip model %d on entity %d '%s'\n", mdl->GetId(), mdl->GetEntity()->entityNumber, mdl->GetEntity()->GetName() );
975977
} else {
976-
gameLocal.Printf( "huge translation for clip model %d\n", mdl->GetId() );
978+
gameLocal.Warning( "huge translation for clip model %d\n", mdl->GetId() );
977979
}
978980

979-
gameLocal.Printf( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
980-
981-
if ( mdl->GetEntity() != NULL && idStr::Cmp(mdl->GetEntity()->GetName(), "monster_zsec_shotgun_12") == 0
982-
&& idStr::Cmp(gameLocal.GetMapName(), "maps/game/alphalabs4.map") == 0 )
983-
{
984-
// there is a map bug in alpha4 where the ride of death can push a monster far into the void
985-
// don't assert there
986-
return true;
987-
}
981+
gameLocal.Warning( " from (%.2f %.2f %.2f) to (%.2f %.2f %.2f)\n", start.x, start.y, start.z, end.x, end.y, end.z);
988982

989-
assert( 0 );
990983
return true;
991984
}
992985
return false;

0 commit comments

Comments
 (0)