Skip to content

Commit

Permalink
Fixed|libdeng2: Use the correct build number (instead of today's)
Browse files Browse the repository at this point in the history
Due to use of a missing preprocessor definition, libdeng2's Version
class always ended up using today's build number instead of the
build's actual number. Consequently, libdeng2 was unable to correctly
detect up/downgrades.

Fixed the preprocessor definition in libdeng2.pro.
  • Loading branch information
skyjake committed Jul 10, 2013
1 parent 77933e9 commit f67e719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doomsday/libdeng2/libdeng2.pro
Expand Up @@ -26,6 +26,10 @@ DEFINES += LIBDENG2_VERSION=\\\"$${LIBDENG2_MAJOR_VERSION}.$${LIBDENG2_MINOR_VER

DEFINES += __DENG2__

!isEmpty(DENG_BUILD) {
DEFINES += LIBDENG2_BUILD_TEXT=\\\"$$DENG_BUILD\\\"
}

# Using Qt.
QT += core network

Expand Down
4 changes: 2 additions & 2 deletions doomsday/libdeng2/src/version.cpp
Expand Up @@ -31,8 +31,8 @@ Version::Version() : build(Time().asBuildNumber())
minor = LIBDENG2_MINOR_VERSION;
patch = LIBDENG2_PATCHLEVEL;

#ifdef DOOMSDAY_BUILD_TEXT
build = String(DOOMSDAY_BUILD_TEXT).toInt();
#ifdef LIBDENG2_BUILD_TEXT
build = String(LIBDENG2_BUILD_TEXT).toInt();
#endif

label = LIBDENG2_RELEASE_LABEL;
Expand Down

0 comments on commit f67e719

Please sign in to comment.