Mercurial > hg > forks > gldragon
changeset 15:2d2aadfa3df3
Fix calculation of totalFrames.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 29 Oct 2019 12:51:25 +0200 |
parents | 62be2036f604 |
children | c134a186912f |
files | glxdragon.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/glxdragon.cpp Tue Oct 29 12:48:36 2019 +0200 +++ b/glxdragon.cpp Tue Oct 29 12:51:25 2019 +0200 @@ -589,10 +589,10 @@ glRotatef(2.0f, 0, 1, 0); // Return true if a full rotation was done + totalFrames++; if (cycleFrames++ == SET_FRAMES) { // Reset cycleFrames - totalFrames += cycleFrames; cycleFrames = 0; // Get the time it took to render a full turn