summaryrefslogtreecommitdiff
path: root/src/game/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/interface.cpp')
-rw-r--r--src/game/interface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/interface.cpp b/src/game/interface.cpp
index 5e5dc70..1300e95 100644
--- a/src/game/interface.cpp
+++ b/src/game/interface.cpp
@@ -247,13 +247,13 @@ void state_t::render_to(render::state_t *render)
ss << render->stats.entities;
render->render_text(x, em, ss.str(), render::ALIGN_LEFT_TOP, sf::Color::White);
- perf_hist_index = (perf_hist_index + 1) % count(perf_hist);
+ perf_hist_index = (perf_hist_index + 1) % COUNT(perf_hist);
perf_hist[perf_hist_index] = 1.0 / render->dt;
fps = 0.0;
- for (size_t i = 0; i < count(perf_hist); i++)
+ for (size_t i = 0; i < COUNT(perf_hist); i++)
fps += perf_hist[i];
- fps /= count(perf_hist);
+ fps /= COUNT(perf_hist);
x[1] += em;
ss.str(std::string());