clientmap, clientmedia: code modernization
authorLoic Blot <loic.blot@unix-experience.fr>
Thu, 17 Aug 2017 06:26:52 +0000 (08:26 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Thu, 17 Aug 2017 06:26:52 +0000 (08:26 +0200)
commitb204bc4da91f6f0bf38cc284693450afc5787512
treed3a7b1e979df80838727d66c1d9ec5a352e6ff35
parent3e80bf933f890c95badbf8896d6a89f4bb708389
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
src/clientmap.cpp
src/clientmap.h
src/clientmedia.cpp
src/clientmedia.h
src/game.cpp