Fixed hiscore date and compiled with latest SDL

This commit is contained in:
George Sokianos 2023-07-04 20:52:03 +01:00
parent 5dd814e452
commit c076098ad9
3 changed files with 20 additions and 12 deletions

View File

@ -15,8 +15,6 @@ Extract the archive wherever you want and run the *breakhack* binary.
- Roman "kas1e" Kargin and Nouvel "HunoPPC" Hugues for their help
with libphysfs
Without all the above Lite XL would not be possible
## Known issues
There are some issues with the Fullscreen graphics, depending which
Renderer driver is used. I might fix them in the future.
@ -34,6 +32,16 @@ https://git.walkero.gr/walkero/breakhack/issues
# Changelog
## [4.0.3r2] - 2023-07-04
### Changed
- Compiled with latest SDL 2.0.28 that has a better support for 16bit
screens. Now it works under Qemu. Tested with Software rendering
### Fixed
- Fixed the hiscore date. Now it is saved on UTC +8 years which is
the Amiga epoch diff against the unix one. This doesn affect the
old hi-scores though
## [4.0.3r1] - 2022-12-21
### Added
- First release for AmigaOS 4

View File

@ -97,7 +97,7 @@ hiscore_init(void)
static void
save_hiscore(double gold, int lvl, int dlvl)
{
const char *query = "INSERT INTO hiscore(gold, playerLevel, dungeonLevel) values (?, ?, ?)";
const char *query = "INSERT INTO hiscore(time, gold, playerLevel, dungeonLevel) values (datetime('now','+8 years'), ?, ?, ?)";
sqlite3_stmt *stmt = db_prepare(db, query);
debug("Saving high score: %dg %dpl %dl",

View File

@ -67,7 +67,7 @@
#if defined(__amigaos4__)
#define USED __attribute__((used))
#define VSTRING "BreakHack 4.0.3r1 (18.09.2022)"
#define VSTRING "BreakHack 4.0.3r2 (04.07.2023)"
#define VERSTAG "\0$VER: " VSTRING
static const char *stack USED = "$STACK:102400";
static const char *version USED = VERSTAG;