From d9d42718faf50946eb6f3afcbef0aaf2f84abecd Mon Sep 17 00:00:00 2001 From: Noah Metzger Date: Mon, 18 Sep 2023 18:05:33 -0500 Subject: [PATCH] fix weapon prediction warning assertion hit --- code/cgame/cg_predict_weapons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cgame/cg_predict_weapons.c b/code/cgame/cg_predict_weapons.c index 1de49d2..8ed980a 100644 --- a/code/cgame/cg_predict_weapons.c +++ b/code/cgame/cg_predict_weapons.c @@ -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; }