X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameInitDispose.cpp;h=85be11836614665da639511091eef841efe2dee1;hb=43b29d6c2092964efbba5ee4d5f4a559d86bc508;hp=57f6958faba924144401c348bb146e0ae268dcb9;hpb=b9a46d8e2b7e7e22c706e7dd3734f31015db4408;p=lugaru.git diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index 57f6958..85be118 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -40,8 +40,6 @@ extern float realtexdetail; extern float volume; extern int detail; extern bool cellophane; -extern GLubyte bloodText[512 * 512 * 3]; -extern GLubyte wolfbloodText[512 * 512 * 3]; extern bool ismotionblur; extern bool trilinear; extern bool musictoggle; @@ -90,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 +595,10 @@ void Game::InitGame() Menu::Load(); Animation::loadAll(); + + PersonType::Load(); + + Person::players.emplace_back(new Person()); } void Game::LoadScreenTexture() @@ -738,8 +735,8 @@ void Game::LoadStuff() iris.Scale(.03, .03, .03); iris.CalculateNormals(0); - LoadSave("Textures/BloodFur.png", &bloodText[0]); - LoadSave("Textures/WolfBloodFur.png", &wolfbloodText[0]); + LoadSave("Textures/WolfBloodFur.png", &PersonType::types[wolftype].bloodText[0]); + LoadSave("Textures/BloodFur.png", &PersonType::types[rabbittype].bloodText[0]); oldenvironment = -4;