Skip to content

Commit

Permalink
KOTOR: Document option "flycamallrooms" in initGameConfig()
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jul 9, 2018
1 parent e900de3 commit 0a6cd25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/engines/kotor/kotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ void KotOREngine::initConfig() {

ConfigMan.setInt(Common::kConfigRealmDefault, "eax", 0);
ConfigMan.setBool(Common::kConfigRealmDefault, "forcesoftware", false);

// xoreos-specific options

// Should we disable hiding of far rooms when the fly cam is enabled?
ConfigMan.setBool(Common::kConfigRealmDefault, "flycamallrooms", true);
}

void KotOREngine::initGameConfig() {
Expand Down
2 changes: 1 addition & 1 deletion src/engines/kotor/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ Common::UString Module::getName(const Common::UString &module) {

void Module::toggleFreeRoamCamera() {
_freeCamEnabled = !_freeCamEnabled;
if (_freeCamEnabled && ConfigMan.getBool("flycamallrooms", true))
if (_freeCamEnabled && ConfigMan.getBool("flycamallrooms"))
_area->showAllRooms();
}

Expand Down

0 comments on commit 0a6cd25

Please sign in to comment.