Skip to content

Commit

Permalink
fix weapon prediction warning assertion hit
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomenor committed Sep 18, 2023
1 parent 2a24428 commit d9d4271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/cgame/cg_predict_weapons.c
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ static void CG_WeaponPredict_FirePredictedImod( const weaponPredictDirs_t *dirs,
CG_WeaponPredict_RunPredictedEvent( &tent, cg.predictedPlayerState.commandTime );
}

if ( tr.contents & CONTENTS_SOLID || tr.entityNum == ENTITYNUM_NONE ) {
if ( tr.contents & CONTENTS_SOLID || tr.entityNum == ENTITYNUM_NONE || tr.entityNum == ENTITYNUM_WORLD ) {
break;
}

Expand Down

0 comments on commit d9d4271

Please sign in to comment.