diff options
author | erorcun <erayorcunus@gmail.com> | 2021-02-02 03:31:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 03:31:29 +0100 |
commit | 1eb77c4d6d758b8efcc229c0b7056e6974dbb700 (patch) | |
tree | 73612989f5979a41d58319429723301efb3710e2 /src/save | |
parent | Add radio off text (diff) | |
parent | Overhaul MusicManager - fix radio bugs, scroll to prev station, radio off text (diff) | |
download | re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.tar re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.tar.gz re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.tar.bz2 re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.tar.lz re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.tar.xz re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.tar.zst re3-1eb77c4d6d758b8efcc229c0b7056e6974dbb700.zip |
Diffstat (limited to 'src/save')
-rw-r--r-- | src/save/GenericGameStorage.cpp | 6 | ||||
-rw-r--r-- | src/save/GenericGameStorage.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 54685b66..a97e9af7 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -67,16 +67,16 @@ bool StillToFadeOut; uint32 TimeStartedCountingForFade; uint32 TimeToStayFadedBeforeFadeOut = 1750; -uint32 RadioStationPosition[NUM_RADIOS]; +int32 RadioStationPosition[NUM_RADIOS]; void InitRadioStationPositionList() { for (int i = 0; i < NUM_RADIOS; i++) - RadioStationPosition[i] = 0; + RadioStationPosition[i] = -1; } -uint32 +int32 GetSavedRadioStationPosition(int32 station) { return RadioStationPosition[station]; diff --git a/src/save/GenericGameStorage.h b/src/save/GenericGameStorage.h index 07aa23ca..65f1cc16 100644 --- a/src/save/GenericGameStorage.h +++ b/src/save/GenericGameStorage.h @@ -6,7 +6,7 @@ #define SLOT_COUNT (8) void InitRadioStationPositionList(); -uint32 GetSavedRadioStationPosition(int32 station); +int32 GetSavedRadioStationPosition(int32 station); void PopulateRadioStationPositionList(); bool GenericSave(int file); bool GenericLoad(); |