mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate and ServerMap::save().
This will speedup the loop reading into those functions
This commit is contained in:
@@ -22,11 +22,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
#include "irrlichttypes.h"
|
||||
#include "irr_v2d.h"
|
||||
#include "mapblock.h"
|
||||
#include <ostream>
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
class MapBlock;
|
||||
class Map;
|
||||
class IGameDef;
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
void deleteBlock(MapBlock *block);
|
||||
|
||||
void getBlocks(std::list<MapBlock*> &dest);
|
||||
void getBlocks(MapBlockVect &dest);
|
||||
|
||||
// Always false at the moment, because sector contains no metadata.
|
||||
bool differs_from_disk;
|
||||
|
Reference in New Issue
Block a user