Bugfixes, read more
* Manual modifications to the database caused the map to act unusual * The server's packet must be created and deleted as a char array * removed UnloadAll() from several singleton destructors * added SDL_Delay() to BaseScene::RenderFrame(), to reduce heavy CPU use in menus
This commit is contained in:
@@ -51,7 +51,7 @@ private:
|
||||
friend Singleton<AccountManager>;
|
||||
|
||||
AccountManager() = default;
|
||||
~AccountManager() { UnloadAll(); };
|
||||
~AccountManager() = default;
|
||||
|
||||
std::map<int, AccountData> accountMap;
|
||||
sqlite3* database = nullptr;
|
||||
|
||||
@@ -54,7 +54,7 @@ private:
|
||||
friend Singleton<CharacterManager>;
|
||||
|
||||
CharacterManager() = default;
|
||||
~CharacterManager() { UnloadAll(); };
|
||||
~CharacterManager() = default;
|
||||
|
||||
std::map<int, CharacterData> characterMap;
|
||||
sqlite3* database = nullptr;
|
||||
|
||||
@@ -150,7 +150,7 @@ void ServerApplication::Proc() {
|
||||
//give the computer a break
|
||||
SDL_Delay(10);
|
||||
}
|
||||
delete packetBuffer;
|
||||
delete reinterpret_cast<char*>(packetBuffer);
|
||||
}
|
||||
|
||||
void ServerApplication::Quit() {
|
||||
|
||||
Reference in New Issue
Block a user