From 006a93236e3aadb10654cd0d344e109245855acb Mon Sep 17 00:00:00 2001 From: Jacobo <77410525+jacobo-mc@users.noreply.github.com> Date: Tue, 18 Jan 2022 07:23:13 -0500 Subject: [PATCH] Update Weapon.cpp --- neo/d3xp/Weapon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neo/d3xp/Weapon.cpp b/neo/d3xp/Weapon.cpp index 30f8882b..f1588fc9 100644 --- a/neo/d3xp/Weapon.cpp +++ b/neo/d3xp/Weapon.cpp @@ -2457,9 +2457,9 @@ ammo_t idWeapon::GetAmmoNumForName( const char *ammoname ) { assert( ammoname ); - ammoDict = gameLocal.FindEntityDefDict( "ammo_types", false ); + ammoDict = gameLocal.FindEntityDefDict( "ammo_types", true ); if ( !ammoDict ) { - gameLocal.Error( "Could not find entity definition for 'ammo_types'\n" ); + gameLocal.Warning( "Could not find entity definition for 'ammo_types'\n" ); } if ( !ammoname[ 0 ] ) { @@ -2511,9 +2511,9 @@ const char *idWeapon::GetAmmoNameForNum( ammo_t ammonum ) { const idKeyValue *kv; char text[ 32 ]; - ammoDict = gameLocal.FindEntityDefDict( "ammo_types", false ); + ammoDict = gameLocal.FindEntityDefDict( "ammo_types", true ); if ( !ammoDict ) { - gameLocal.Error( "Could not find entity definition for 'ammo_types'\n" ); + gameLocal.Warning( "Could not find entity definition for 'ammo_types'\n" ); } sprintf( text, "%d", ammonum );