aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-17 08:26:52 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-08-17 08:26:52 +0200
commitb204bc4da91f6f0bf38cc284693450afc5787512 (patch)
treed3a7b1e979df80838727d66c1d9ec5a352e6ff35 /src/game.cpp
parent3e80bf933f890c95badbf8896d6a89f4bb708389 (diff)
downloaddragonfireclient-b204bc4da91f6f0bf38cc284693450afc5787512.tar.xz
clientmap, clientmedia: code modernization
* use range-based for loops * simplify some tests * various code style fixes * remove debugprint in ClientMap::getBackgroundBrightness, debug code was not intended to be there * remove unused fields in MapDrawControl * use emplace_back instead of push_back when necessary
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index cdbd92301..3634d6b6f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -4217,7 +4217,7 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
|| runData.update_draw_list_last_cam_dir.getDistanceFrom(camera_direction) > 0.2
|| m_camera_offset_changed) {
runData.update_draw_list_timer = 0;
- client->getEnv().getClientMap().updateDrawList(driver);
+ client->getEnv().getClientMap().updateDrawList();
runData.update_draw_list_last_cam_dir = camera_direction;
}