[sylverant] r772 committed - Allow reading map files without the rest of the server drops stuff.

6 views
Skip to first unread message

sylv...@googlecode.com

unread,
Dec 31, 2014, 9:14:30 PM12/31/14
to sylverant-...@googlegroups.com
Revision: 772
Author: bluecrab
Date: Thu Jan 1 02:14:24 2015 UTC
Log: Allow reading map files without the rest of the server drops
stuff.


https://code.google.com/p/sylverant/source/detail?r=772

Modified:
/trunk/ship_server/src/ship_server.c

=======================================
--- /trunk/ship_server/src/ship_server.c Tue Dec 16 20:16:17 2014 UTC
+++ /trunk/ship_server/src/ship_server.c Thu Jan 1 02:14:24 2015 UTC
@@ -560,16 +560,16 @@
cfg->shipgate_flags |= SHIPGATE_FLAG_NOBB;
}

- /* If we could read the v2 ItemPT file, try to read its maps too. */
- if(pt_v2_enabled() && pmt_v2_enabled() && cfg->v2_map_dir) {
+ /* If we have a v2 map dir set, try to read the maps. */
+ if(cfg->v2_map_dir) {
rv = v2_read_params(cfg);

if(rv < 0)
exit(EXIT_FAILURE);
}

- /* If we could read the GC ItemPT file, try to read its maps too. */
- if(pt_gc_enabled() && pmt_gc_enabled() && cfg->gc_map_dir) {
+ /* If we have a GC map dir set, try to read the maps. */
+ if(cfg->gc_map_dir) {
rv = gc_read_params(cfg);

if(rv < 0)
Reply all
Reply to author
Forward
0 new messages