diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch')
-rw-r--r-- | games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch new file mode 100644 index 000000000000..19974e36ea56 --- /dev/null +++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-gcc6.patch @@ -0,0 +1,22 @@ +--- a/src/GameLogic.h ++++ b/src/GameLogic.h +@@ -52,8 +52,8 @@ + /* Fixed interval time-based animation */ + static const int maximumFrameRate = 60; + static const int minimumFrameRate = 15; +- static const float updateInterval = 1.0 / maximumFrameRate; +- static const float maxCyclesPerFrame = maximumFrameRate / minimumFrameRate; ++ static const float updateInterval; ++ static const float maxCyclesPerFrame; + + float lastFrameTime; + float cyclesLeftOver; +--- a/src/GameLogic.cc ++++ b/src/GameLogic.cc +@@ -206,3 +206,6 @@ + { + sprintf(buf, "%s/data/gfx/%s", datadir, file); + } ++ ++const float GameLogic::updateInterval = 1.0 / maximumFrameRate; ++const float GameLogic::maxCyclesPerFrame = maximumFrameRate / minimumFrameRate; |