Added several warning messages (#4062)
* enablenpc / disablenpc / hideoffnpc / hideonnpc now display the npc source when the npc named doesn't exist * Added the NPC source to status_set_viewdata when no view data has been found * Added export_deprecated_constant3 to display the constant name replacing the deprecated * Removed the debug message from `@ warp` when the map name is wrong * Added clif_name_area to UMOB_LEVEL on setunitdata and a capvalue to UPET_HUNGER * areamonster now checks if the monster ID exists Thanks to @Normynator and @aleos89 for the review!
This commit is contained in:
@@ -115,7 +115,8 @@ unsigned short mapindex_name2idx(const char* name, const char *func) {
|
||||
if( (i = strdb_iget(mapindex_db, map_name)) )
|
||||
return i;
|
||||
|
||||
ShowDebug("(%s) mapindex_name2id: Map \"%s\" not found in index list!\n", func, map_name);
|
||||
if (func)
|
||||
ShowDebug("(%s) mapindex_name2id: Map \"%s\" not found in index list!\n", func, map_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user