mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 02:56:43 +01:00
libsuperderpy_init: Fix Allegro version handling
Allegro release number equals 0 for unreleased builds, 1 for first release (x.x.x.0), 2 for second release (x.x.x.1) etc.
This commit is contained in:
parent
35bd8aa2a2
commit
61797d2c0d
1 changed files with 2 additions and 2 deletions
|
@ -297,9 +297,9 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
|
||||||
int revision = (version >> 8) & 255;
|
int revision = (version >> 8) & 255;
|
||||||
int release = version & 255;
|
int release = version & 255;
|
||||||
if (release) {
|
if (release) {
|
||||||
PrintConsole(game, "Allegro %d.%d.%d.%d", major, minor, revision, release);
|
PrintConsole(game, "Allegro %d.%d.%d.%d", major, minor, revision, release - 1);
|
||||||
} else {
|
} else {
|
||||||
PrintConsole(game, "Allegro %d.%d.%d", major, minor, revision);
|
PrintConsole(game, "Allegro %d.%d.%d~", major, minor, revision);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue