Skip to content

Commit

Permalink
fix(zc): 'Save Indicator' option now works to toggle the 'Saving...' …
Browse files Browse the repository at this point in the history
…text
  • Loading branch information
EmilyV99 committed Jun 12, 2023
1 parent a9410e8 commit 1a700f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/zc/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

extern sprite_list guys;
extern double aspect_ratio;
extern byte use_save_indicator;

RenderTreeItem rti_root;
RenderTreeItem rti_game;
Expand Down Expand Up @@ -337,7 +338,7 @@ void render_zc()
lines_left.push_back(replay_get_buttons_string().c_str());
if (Paused)
lines_right.push_back("PAUSED");
if (Saving)
if (Saving && use_save_indicator)
lines_right.push_back("SAVING ...");
if (details && game)
{
Expand Down
2 changes: 1 addition & 1 deletion src/zc/zc_sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7240,7 +7240,7 @@ int32_t onHeartBeep()

int32_t onSaveIndicator()
{
use_save_indicator=!use_save_indicator;
use_save_indicator = use_save_indicator ? 0 : 1;
zc_set_config(cfg_sect,"save_indicator",use_save_indicator);
return D_O_K;
}
Expand Down

0 comments on commit 1a700f5

Please sign in to comment.