mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Code modernization: src/m* (part 3)
* empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * remove some unused headers in some cpp variable
This commit is contained in:
parent
b5f7249a7e
commit
d382483fa7
11 changed files with 20 additions and 31 deletions
|
@ -1925,9 +1925,8 @@ void ServerMap::save(ModifiedState save_level)
|
|||
// Don't do anything with sqlite unless something is really saved
|
||||
bool save_started = false;
|
||||
|
||||
for(std::map<v2s16, MapSector*>::iterator i = m_sectors.begin();
|
||||
i != m_sectors.end(); ++i) {
|
||||
ServerMapSector *sector = (ServerMapSector*)i->second;
|
||||
for (auto §or_it : m_sectors) {
|
||||
ServerMapSector *sector = (ServerMapSector*) sector_it.second;
|
||||
assert(sector->getId() == MAPSECTOR_SERVER);
|
||||
|
||||
if(sector->differs_from_disk || save_level == MOD_STATE_CLEAN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue