From 6e196c2ce4285c0aea2a5c714e842d90c1b84b43 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 1 Feb 2011 03:06:02 +0200 Subject: partly working chunk-based map generator (doesn't save properly, spawn is pretty random) --- src/mapsector.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mapsector.cpp') diff --git a/src/mapsector.cpp b/src/mapsector.cpp index fa1bb68d0..1fd668793 100644 --- a/src/mapsector.cpp +++ b/src/mapsector.cpp @@ -570,10 +570,15 @@ ServerMapSector* ServerMapSector::deSerialize( if(n != NULL) { - dstream<<"deSerializing existent sectors not supported " + dstream<<"WARNING: deSerializing existent sectors not supported " "at the moment, because code hasn't been tested." <getValue(); + assert(sector->getId() == MAPSECTOR_SERVER); + return (ServerMapSector*)sector; + // NOTE: At least hm_split mismatch would have to be checked //sector = n->getValue(); -- cgit v1.2.3