]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameInitDispose.cpp
Friends fight with true enemies, before they attacked player but hurting enemies
[lugaru.git] / Source / GameInitDispose.cpp
index e84f10ebb61f29d28eb7cc33c8570092de12d9b3..85be11836614665da639511091eef841efe2dee1 100644 (file)
@@ -88,16 +88,11 @@ void Dispose()
 
     OPENAL_StopSound(OPENAL_ALL);
 
-// this is causing problems on Linux, but we'll force an _exit() a little
-//  later in the shutdown process.  --ryan.
-#if !PLATFORM_LINUX
-
     for (int i = 0; i < sounds_count; ++i) {
         OPENAL_Sample_Free(samp[i]);
     }
 
     OPENAL_Close();
-#endif
 }
 
 void Game::newGame()
@@ -602,6 +597,8 @@ void Game::InitGame()
     Animation::loadAll();
 
     PersonType::Load();
+
+    Person::players.emplace_back(new Person());
 }
 
 void Game::LoadScreenTexture()