Change internals of EntityMap to use an std::vector

This generally makes this code cleaner and easier to maintain, while
also being more modern and fully tested.

Looked at by: leper
Differential Revision: https://code.wildfiregames.com/D8
This was SVN commit r22029.
This commit is contained in:
wraitii
2019-01-05 18:19:59 +00:00
parent f21d79640c
commit b56f7f39d4
3 changed files with 194 additions and 249 deletions
@@ -1,4 +1,4 @@
/* Copyright (C) 2018 Wildfire Games.
/* Copyright (C) 2019 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -539,7 +539,7 @@ public:
entdata.size = cmpObstruction->GetSize().ToInt_RoundToInfinity();
// Remember this entity
m_EntityData.insert(ent, entdata);
m_EntityData.insert_or_assign(ent, entdata);
break;
}
case MT_PositionChanged: