Some cleanup

This commit is contained in:
Vladislav Khorev committed 2026-11-17 20:29:20 +06:00
1 parent 4e40a1825a
commit c1be26023b
20 files changed
+451 -1330

No files matched your search

+1 -6
View File
@@ -101,7 +101,6 @@ void InternalGameServer::startCampaign(
state_.locations.clear();
state_.players.clear();
state_.questJournal.loadFromFile(campaign.questsPath, zipFile);
//state_.globalFloats["player_hp"] = 200.f;
if (createLocalPlayer) {
auto player = std::make_shared<CharacterState>();
@@ -142,12 +141,9 @@ void InternalGameServer::resetCampaign(
state_.isDarklands = false;
state_.isNight = false;
state_.isDawn = false;
//state_.playerHp = 200.f;
state_.playerMaxHp = 200.f;
state_.money = 5500;
state_.globalInts.clear();
state_.globalFloats.clear();
//state_.globalFloats["player_hp"] = 200.f;
state_.tutorialStep = TutorialStep::AdvanceDialogue;
state_.tutorialPhoneChatScreenOpened = false;
state_.tutorialJournalScreenOpened = false;
@@ -176,8 +172,7 @@ bool InternalGameServer::prepareLocation(const LocationConfig& config)
if (player != state_.players.end() && player->second) {
player->second->position = config.playerPosition;
player->second->setTarget(
config.playerPosition, std::string(), *authoritative.location,
localPlayerId_);
config.playerPosition, std::string(), *authoritative.location);
}
publishMutation();
return initializeLocation;