1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Disabled git version of C::B projects

This commit is contained in:
AlexVinS
2016-10-27 16:27:10 +03:00
parent da1c9cf249
commit 1ccb0d98be
3 changed files with 16 additions and 2 deletions

View File

@@ -12,6 +12,10 @@
#include "StdInc.h"
#ifndef VCMI_NO_EXTRA_VERSION
#include "../Version.h"
#endif
#include "VCMI_Lib.h"
#include "mapObjects/CObjectClassesHandler.h"
#include "CArtHandler.h"
@@ -31,6 +35,15 @@ const PlayerColor PlayerColor::NEUTRAL = PlayerColor(255);
const PlayerColor PlayerColor::PLAYER_LIMIT = PlayerColor(PLAYER_LIMIT_I);
const TeamID TeamID::NO_TEAM = TeamID(255);
namespace GameConstants
{
#ifdef VCMI_NO_EXTRA_VERSION
const std::string VCMI_VERSION = std::string("VCMI 0.98h");
#else
const std::string VCMI_VERSION = std::string("VCMI 0.98h ") + GIT_SHA1;
#endif
}
const CArtifact * ArtifactID::toArtifact() const
{
return VLC->arth->artifacts.at(*this);