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:
Atemo
2019-04-10 15:59:42 +02:00
committed by GitHub
parent c772262469
commit 9aa5f7d834
8 changed files with 153 additions and 130 deletions

View File

@@ -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;
}