File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,12 @@ nlohmann::ordered_json serialize(const data::GameOptions& options) {
341
341
serialized[" quickSaveKeybinding" ] = SDL_GetKeyName (options.mQuickSaveKeybinding );
342
342
serialized[" quickLoadKeybinding" ] = SDL_GetKeyName (options.mQuickLoadKeybinding );
343
343
344
+ #if 0
345
+ // NOTE: This is disabled for now, it's not quite ready yet to be made
346
+ // user-facing.
344
347
serialized["compatibilityModeOn"] = options.mCompatibilityModeOn;
348
+ #endif
349
+
345
350
serialized[" widescreenModeOn" ] = options.mWidescreenModeOn ;
346
351
serialized[" quickSavingEnabled" ] = options.mQuickSavingEnabled ;
347
352
return serialized;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ constexpr auto MAX_ADJUST_UP = 2;
47
47
constexpr auto MAX_ADJUST_DOWN = 2 ;
48
48
constexpr auto MAX_ADJUST_DOWN_ELEVATOR = 3 ;
49
49
50
- constexpr auto DEAD_ZONE_START_X = 11 ;
50
+ constexpr auto DEAD_ZONE_START_X = 10 ;
51
51
constexpr auto IN_SHIP_DEAD_ZONE_START_X = 12 ;
52
52
constexpr auto DEAD_ZONE_END_X = 21 ;
53
53
@@ -111,8 +111,7 @@ base::Rect<int> normalizedPlayerBounds(
111
111
const auto offsetToCenter = extraTiles / 2 ;
112
112
113
113
auto playerBounds = player.worldSpaceCollisionBox ();
114
- playerBounds.topLeft .x -= offsetToCenter;
115
-
114
+ playerBounds.topLeft .x = player.orientedPosition ().x - offsetToCenter;
116
115
return playerBounds;
117
116
}
118
117
Original file line number Diff line number Diff line change @@ -663,7 +663,7 @@ void GameWorld::processEndOfFrameActions() {
663
663
664
664
665
665
void GameWorld::quickSave () {
666
- if (!mpOptions->mQuickSavingEnabled ) {
666
+ if (!mpOptions->mQuickSavingEnabled || mpState-> mPlayer . isDead () ) {
667
667
return ;
668
668
}
669
669
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ int Player::animationFrame() const {
438
438
439
439
440
440
base::Vector Player::orientedPosition () const {
441
- if (stateIs<InShip>() || !mpOptions-> compatibilityModeOn () ) {
441
+ if (stateIs<InShip>()) {
442
442
return position ();
443
443
}
444
444
@@ -805,10 +805,7 @@ void Player::updateMovement(
805
805
806
806
if (movementVector.x != 0 && movementVector.x != walkingDirection) {
807
807
switchOrientation ();
808
-
809
- if (mpOptions->compatibilityModeOn ()) {
810
- position.x -= movementVector.x ;
811
- }
808
+ position.x -= movementVector.x ;
812
809
}
813
810
} else {
814
811
setVisualState (VisualState::Standing);
@@ -958,10 +955,7 @@ void Player::updateMovement(
958
955
959
956
if (movementVector.x != 0 && movementVector.x != orientationAsMovement) {
960
957
switchOrientation ();
961
-
962
- if (mpOptions->compatibilityModeOn ()) {
963
- position.x -= movementVector.x ;
964
- }
958
+ position.x -= movementVector.x ;
965
959
}
966
960
967
961
if (mJumpRequested && movement > 0 ) {
Original file line number Diff line number Diff line change @@ -272,10 +272,13 @@ void OptionsMenu::updateAndRender(engine::TimeDelta dt) {
272
272
ImGui::EndTabItem ();
273
273
}
274
274
275
- if (ImGui::BeginTabItem (" Gameplay/ Enhancements" ))
275
+ if (ImGui::BeginTabItem (" Enhancements" ))
276
276
{
277
277
ImGui::NewLine ();
278
278
279
+ #if 0
280
+ // NOTE: This is disabled for now, it's not quite ready yet to be made
281
+ // user-facing.
279
282
const auto canUseCompatibilityMode = !mpOptions->mWidescreenModeOn;
280
283
281
284
withEnabledState(canUseCompatibilityMode, [&]() {
@@ -290,6 +293,7 @@ void OptionsMenu::updateAndRender(engine::TimeDelta dt) {
290
293
mpOptions->mCompatibilityModeOn = gameplayStyleIndex == 0;
291
294
}
292
295
});
296
+ #endif
293
297
294
298
ImGui::Checkbox (" Widescreen mode" , &mpOptions->mWidescreenModeOn );
295
299
ImGui::Checkbox (" Quick saving" , &mpOptions->mQuickSavingEnabled );
You can’t perform that action at this time.
0 commit comments