diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-10-09 22:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 22:49:25 +0200 |
commit | 32ee1708a24836b26cd700eb42ad8264a3ecae83 (patch) | |
tree | bdd23de04c68c9be7c512ba37ce8968d6581b810 /src/Defines.h | |
parent | added check if the digger is a nullptr (#4981) (diff) | |
download | cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.tar cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.tar.gz cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.tar.bz2 cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.tar.lz cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.tar.xz cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.tar.zst cuberite-32ee1708a24836b26cd700eb42ad8264a3ecae83.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Defines.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Defines.h b/src/Defines.h index a9714c52f..dc2835517 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -12,6 +12,21 @@ typedef std::vector<int> cSlotNums; +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmissing-variable-declarations" +#endif +/** Constant to calculate ticks from seconds "ticks per second" */ +constexpr inline const int TPS = 20; +// This is not added to the lua API because it broke the build +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + + + + + // tolua_begin /** Experience Orb setup */ @@ -384,7 +399,6 @@ enum eMessageType - /** Returns a textual representation of the click action. */ const char * ClickActionToString(int a_ClickAction); |