force end of level freeze fix

This commit is contained in:
rr- 2021-03-30 21:32:58 +02:00
parent 64b96e189f
commit e5dadddac3
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
5 changed files with 2 additions and 20 deletions

View file

@ -121,9 +121,6 @@
// immediately after using them.
"fix_key_triggers": true,
// Fixes game freeze when ending the level with the Action key held.
"fix_end_of_level_freeze": true,
// Disables the secret sound incorrectly playing during using the golden
// key in Tomb of Tihocan.
"fix_tihocan_secret_sound": true,

View file

@ -136,7 +136,6 @@ int8_t T1MReadConfigFromJson(const char *cfg_data)
READ_BOOL(enable_timer_in_inventory, 1);
READ_BOOL(enable_smooth_bars, 1);
READ_BOOL(fix_key_triggers, 1);
READ_BOOL(fix_end_of_level_freeze, 1);
READ_BOOL(fix_tihocan_secret_sound, 1);
READ_BOOL(fix_pyramid_secret_trigger, 1);
READ_BOOL(fix_illegal_gun_equip, 1);

View file

@ -57,7 +57,6 @@ struct {
int8_t enemy_healthbar_location;
int8_t enemy_healthbar_color;
int8_t fix_key_triggers;
int8_t fix_end_of_level_freeze;
int8_t fix_tihocan_secret_sound;
int8_t fix_pyramid_secret_trigger;
int8_t fix_illegal_gun_equip;

View file

@ -180,20 +180,8 @@ void LevelStats(int32_t level_num)
T_CentreV(txt, 1);
// wait till action key release
if (T1MConfig.fix_end_of_level_freeze) {
while (CHK_ANY(Input, IN_SELECT | IN_DESELECT)) {
S_UpdateInput();
S_InitialisePolyList();
S_CopyBufferToScreen();
S_UpdateInput();
T_DrawText();
S_OutputPolyList();
S_DumpScreen();
}
} else {
while (Input & IN_SELECT) {
S_UpdateInput();
}
while (CHK_ANY(Input, IN_SELECT | IN_DESELECT)) {
S_UpdateInput();
S_InitialisePolyList();
S_CopyBufferToScreen();
S_UpdateInput();

View file

@ -35,7 +35,6 @@ void test_empty_config()
ASSERT_INT_EQUAL(T1MConfig.enemy_healthbar_location, T1M_BL_BOTTOM_LEFT);
ASSERT_INT_EQUAL(T1MConfig.enemy_healthbar_color, T1M_BC_GREY);
ASSERT_INT_EQUAL(T1MConfig.fix_key_triggers, 1);
ASSERT_INT_EQUAL(T1MConfig.fix_end_of_level_freeze, 1);
ASSERT_INT_EQUAL(T1MConfig.fix_tihocan_secret_sound, 1);
ASSERT_INT_EQUAL(T1MConfig.fix_pyramid_secret_trigger, 1);
ASSERT_INT_EQUAL(T1MConfig.fix_illegal_gun_equip, 1);