Compare commits

..

1 Commits

Author SHA1 Message Date
George Sokianos c076098ad9 Fixed hiscore date and compiled with latest SDL 2023-07-04 20:52:03 +01:00
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 - Roman "kas1e" Kargin and Nouvel "HunoPPC" Hugues for their help
with libphysfs with libphysfs
Without all the above Lite XL would not be possible
## Known issues ## Known issues
There are some issues with the Fullscreen graphics, depending which There are some issues with the Fullscreen graphics, depending which
Renderer driver is used. I might fix them in the future. Renderer driver is used. I might fix them in the future.
@ -34,6 +32,16 @@ https://git.walkero.gr/walkero/breakhack/issues
# Changelog # 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 ## [4.0.3r1] - 2022-12-21
### Added ### Added
- First release for AmigaOS 4 - First release for AmigaOS 4

View File

@ -97,7 +97,7 @@ hiscore_init(void)
static void static void
save_hiscore(double gold, int lvl, int dlvl) 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); sqlite3_stmt *stmt = db_prepare(db, query);
debug("Saving high score: %dg %dpl %dl", debug("Saving high score: %dg %dpl %dl",

View File

@ -67,7 +67,7 @@
#if defined(__amigaos4__) #if defined(__amigaos4__)
#define USED __attribute__((used)) #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 #define VERSTAG "\0$VER: " VSTRING
static const char *stack USED = "$STACK:102400"; static const char *stack USED = "$STACK:102400";
static const char *version USED = VERSTAG; static const char *version USED = VERSTAG;