Revision: 773
Author: bluecrab
Date: Fri Jan 2 05:03:13 2015 UTC
Log: Disable server drops earlier when parsing quest maps, in case the
file can't be opened or something like that.
https://code.google.com/p/sylverant/source/detail?r=773
Modified:
/trunk/ship_server/src/mapdata.c
=======================================
--- /trunk/ship_server/src/mapdata.c Tue Dec 30 17:43:35 2014 UTC
+++ /trunk/ship_server/src/mapdata.c Fri Jan 2 05:03:13 2015 UTC
@@ -1886,6 +1886,9 @@
if(!(l->flags & LOBBY_FLAG_SERVER_DROPS))
return 0;
+ /* Unset this, in case something screws up. */
+ l->flags &= ~LOBBY_FLAG_SERVER_DROPS;
+
/* Map PC->DCv2. */
if(ver == CLIENT_VERSION_PC)
ver = CLIENT_VERSION_DCV2;
@@ -1905,9 +1908,6 @@
fclose(fp);
return -2;
}
-
- /* Unset this, in case something screws up. */
- l->flags &= ~LOBBY_FLAG_SERVER_DROPS;
/* Reallocate the objects array. */
l->map_objs->count = cnt = LE32(cnt);