Skip to content

Commit c017d6a

Browse files
Merge pull request #612 from lethal-guitar/prep-for-release
Prep for release
2 parents c8502ba + 64ca101 commit c017d6a

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

src/common/user_profile.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,12 @@ nlohmann::ordered_json serialize(const data::GameOptions& options) {
341341
serialized["quickSaveKeybinding"] = SDL_GetKeyName(options.mQuickSaveKeybinding);
342342
serialized["quickLoadKeybinding"] = SDL_GetKeyName(options.mQuickLoadKeybinding);
343343

344+
#if 0
345+
// NOTE: This is disabled for now, it's not quite ready yet to be made
346+
// user-facing.
344347
serialized["compatibilityModeOn"] = options.mCompatibilityModeOn;
348+
#endif
349+
345350
serialized["widescreenModeOn"] = options.mWidescreenModeOn;
346351
serialized["quickSavingEnabled"] = options.mQuickSavingEnabled;
347352
return serialized;

src/game_logic/camera.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ constexpr auto MAX_ADJUST_UP = 2;
4747
constexpr auto MAX_ADJUST_DOWN = 2;
4848
constexpr auto MAX_ADJUST_DOWN_ELEVATOR = 3;
4949

50-
constexpr auto DEAD_ZONE_START_X = 11;
50+
constexpr auto DEAD_ZONE_START_X = 10;
5151
constexpr auto IN_SHIP_DEAD_ZONE_START_X = 12;
5252
constexpr auto DEAD_ZONE_END_X = 21;
5353

@@ -111,8 +111,7 @@ base::Rect<int> normalizedPlayerBounds(
111111
const auto offsetToCenter = extraTiles / 2;
112112

113113
auto playerBounds = player.worldSpaceCollisionBox();
114-
playerBounds.topLeft.x -= offsetToCenter;
115-
114+
playerBounds.topLeft.x = player.orientedPosition().x - offsetToCenter;
116115
return playerBounds;
117116
}
118117

src/game_logic/game_world.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ void GameWorld::processEndOfFrameActions() {
663663

664664

665665
void GameWorld::quickSave() {
666-
if (!mpOptions->mQuickSavingEnabled) {
666+
if (!mpOptions->mQuickSavingEnabled || mpState->mPlayer.isDead()) {
667667
return;
668668
}
669669

src/game_logic/player.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ int Player::animationFrame() const {
438438

439439

440440
base::Vector Player::orientedPosition() const {
441-
if (stateIs<InShip>() || !mpOptions->compatibilityModeOn()) {
441+
if (stateIs<InShip>()) {
442442
return position();
443443
}
444444

@@ -805,10 +805,7 @@ void Player::updateMovement(
805805

806806
if (movementVector.x != 0 && movementVector.x != walkingDirection) {
807807
switchOrientation();
808-
809-
if (mpOptions->compatibilityModeOn()) {
810-
position.x -= movementVector.x;
811-
}
808+
position.x -= movementVector.x;
812809
}
813810
} else {
814811
setVisualState(VisualState::Standing);
@@ -958,10 +955,7 @@ void Player::updateMovement(
958955

959956
if (movementVector.x != 0 && movementVector.x != orientationAsMovement) {
960957
switchOrientation();
961-
962-
if (mpOptions->compatibilityModeOn()) {
963-
position.x -= movementVector.x;
964-
}
958+
position.x -= movementVector.x;
965959
}
966960

967961
if (mJumpRequested && movement > 0) {

src/ui/options_menu.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,13 @@ void OptionsMenu::updateAndRender(engine::TimeDelta dt) {
272272
ImGui::EndTabItem();
273273
}
274274

275-
if (ImGui::BeginTabItem("Gameplay/Enhancements"))
275+
if (ImGui::BeginTabItem("Enhancements"))
276276
{
277277
ImGui::NewLine();
278278

279+
#if 0
280+
// NOTE: This is disabled for now, it's not quite ready yet to be made
281+
// user-facing.
279282
const auto canUseCompatibilityMode = !mpOptions->mWidescreenModeOn;
280283

281284
withEnabledState(canUseCompatibilityMode, [&]() {
@@ -290,6 +293,7 @@ void OptionsMenu::updateAndRender(engine::TimeDelta dt) {
290293
mpOptions->mCompatibilityModeOn = gameplayStyleIndex == 0;
291294
}
292295
});
296+
#endif
293297

294298
ImGui::Checkbox("Widescreen mode", &mpOptions->mWidescreenModeOn);
295299
ImGui::Checkbox("Quick saving", &mpOptions->mQuickSavingEnabled);

0 commit comments

Comments
 (0)