Skip to content

Commit

Permalink
G! controls are default now
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Jul 14, 2023
1 parent adc9dd0 commit 0039c27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion game/game/playercontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ PlayerControl::~PlayerControl() {
}

void PlayerControl::setupSettings() {
g2Ctrl = Gothic::inst().settingsGetI("GAME","USEGOTHIC1CONTROLS")==0;
if(Gothic::inst().version().game==2) {
g2Ctrl = Gothic::inst().settingsGetI("GAME","USEGOTHIC1CONTROLS")==0;
} else {
g2Ctrl = false;
}
}

void PlayerControl::setTarget(Npc *other) {
Expand Down
2 changes: 1 addition & 1 deletion game/gothic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Gothic::Gothic() {
defaults->set("GAME", "invCatOrder", "COMBAT,POTION,FOOD,ARMOR,MAGIC,RUNE,DOCS,OTHER,NONE");
defaults->set("GAME", "invMaxColumns", 5);
defaults->set("GAME", "animatedWindows", 1);
defaults->set("GAME", "useGothic1Controls", 0);
defaults->set("GAME", "useGothic1Controls", 1);
defaults->set("GAME", "highlightMeleeFocus", 0);

defaults->set("SKY_OUTDOOR", "zSunName", "unsun5.tga");
Expand Down

0 comments on commit 0039c27

Please sign in to comment.