Brought the programs into line, (BUG, read more)

It seems that the serialization code has a bug in it. I was expecting
something like this. When the server tries to send the region content, it
exits. I'll try and find the cause of the error, but I'm committing my
changes anyway.
This commit is contained in:
Kayne Ruse
2014-04-20 04:27:28 +10:00
parent fba183fa27
commit eb0b18af6f
8 changed files with 44 additions and 51 deletions
+1 -4
View File
@@ -98,10 +98,7 @@ void ServerApplication::Init(int argc, char** argv) {
cout << "Initialized lua's setup script" << endl;
//setup the map object
regionPager.SetRegionWidth(REGION_WIDTH);
regionPager.SetRegionHeight(REGION_HEIGHT);
regionPager.SetRegionDepth(REGION_DEPTH);
regionPager.GetGenerator()->SetLuaState(luaState);
regionPager.GetAllocator()->SetLuaState(luaState);
regionPager.GetFormat()->SetLuaState(luaState);
//TODO: config parameter
regionPager.GetFormat()->SetSaveDir("save/mapname/");