* Should not exit when you can't find an NPC file..
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5845 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
63eb37dc33
commit
85843bfe0f
@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
|||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/04/01
|
2006/04/01
|
||||||
|
* Should not exit when you can't find an NPC file.. [Lance]
|
||||||
* Dynamic shops support with script callback. (needs testing) [Lance]
|
* Dynamic shops support with script callback. (needs testing) [Lance]
|
||||||
* Cleaned up and fixed @where command. [Skotlex]
|
* Cleaned up and fixed @where command. [Skotlex]
|
||||||
* Fixed standing up no really making you stand up. [Skotlex]
|
* Fixed standing up no really making you stand up. [Skotlex]
|
||||||
|
@ -89,7 +89,7 @@ npc: npc/custom/adoption.txt
|
|||||||
//npc: npc/custom/Lance/FR_HallOfFame.c
|
//npc: npc/custom/Lance/FR_HallOfFame.c
|
||||||
//npc: npc/custom/Lance/FR_WeatherController.c
|
//npc: npc/custom/Lance/FR_WeatherController.c
|
||||||
//npc: npc/custom/Lance/FR_MailSystem.c
|
//npc: npc/custom/Lance/FR_MailSystem.c
|
||||||
//npc: npc/custom/sample/npc_dynamic_shop.txt
|
//npc: npc/sample/npc_dynamic_shop.txt
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
@ -2436,7 +2436,7 @@ void npc_parsesrcfile (char *name)
|
|||||||
FILE *fp = fopen (name,"r");
|
FILE *fp = fopen (name,"r");
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
ShowError ("File not found : %s\n", name);
|
ShowError ("File not found : %s\n", name);
|
||||||
exit(1);
|
return;
|
||||||
}
|
}
|
||||||
current_file = name;
|
current_file = name;
|
||||||
|
|
||||||
|
@ -9871,7 +9871,7 @@ int buildin_npcshopitem(struct script_state *st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nd = (struct npc_data *)aRealloc(nd,sizeof(struct npc_data) +
|
nd = (struct npc_data *)aRealloc(nd,sizeof(struct npc_data) +
|
||||||
sizeof(nd->u.shop_item[0]) * (n+1));
|
sizeof(nd->u.shop_item[0]) * n);
|
||||||
|
|
||||||
map_addiddb(&nd->bl);
|
map_addiddb(&nd->bl);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user