|
@@ -3658,7 +3658,9 @@ void do_final(void) {
|
|
//map_cache_close();
|
|
//map_cache_close();
|
|
|
|
|
|
// We probably don't need the grfio after server bootup 'yet' too. So this is closed near the end of do_init [Lance]
|
|
// We probably don't need the grfio after server bootup 'yet' too. So this is closed near the end of do_init [Lance]
|
|
- grfio_final(); // Reverted since itemdb refresh needs it temperory.
|
|
|
|
|
|
+ if((battle_config.cardillust_read_grffile || battle_config.item_equip_override_grffile ||
|
|
|
|
+ battle_config.item_slots_override_grffile || battle_config.item_name_override_grffile))
|
|
|
|
+ grfio_final();
|
|
|
|
|
|
for (i = 0; i < map_num; i++)
|
|
for (i = 0; i < map_num; i++)
|
|
if (map[i].m >= 0)
|
|
if (map[i].m >= 0)
|
|
@@ -3950,12 +3952,15 @@ int do_init(int argc, char *argv[]) {
|
|
if (battle_config.pk_mode == 1)
|
|
if (battle_config.pk_mode == 1)
|
|
ShowNotice("Server is running on '"CL_WHITE"PK Mode"CL_RESET"'.\n");
|
|
ShowNotice("Server is running on '"CL_WHITE"PK Mode"CL_RESET"'.\n");
|
|
|
|
|
|
- //grfio_final(); // Unused after reading all maps.
|
|
|
|
|
|
+ if(!(battle_config.cardillust_read_grffile || battle_config.item_equip_override_grffile ||
|
|
|
|
+ battle_config.item_slots_override_grffile || battle_config.item_name_override_grffile))
|
|
|
|
+ grfio_final(); // Unused after reading all maps.
|
|
|
|
+
|
|
//However, some reload functions still use it,disable them.
|
|
//However, some reload functions still use it,disable them.
|
|
- battle_config.cardillust_read_grffile =
|
|
|
|
- battle_config.item_equip_override_grffile =
|
|
|
|
- battle_config.item_slots_override_grffile =
|
|
|
|
- battle_config.item_name_override_grffile = 0;
|
|
|
|
|
|
+ //battle_config.cardillust_read_grffile =
|
|
|
|
+ //battle_config.item_equip_override_grffile =
|
|
|
|
+ //battle_config.item_slots_override_grffile =
|
|
|
|
+ //battle_config.item_name_override_grffile = 0;
|
|
|
|
|
|
ShowStatus("Server is '"CL_GREEN"ready"CL_RESET"' and listening on port '"CL_WHITE"%d"CL_RESET"'.\n\n", map_port);
|
|
ShowStatus("Server is '"CL_GREEN"ready"CL_RESET"' and listening on port '"CL_WHITE"%d"CL_RESET"'.\n\n", map_port);
|
|
|
|
|