1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

* a bit better stack reversing

* FoWChange uses unordered_set instead of set
This commit is contained in:
mateuszb
2011-01-20 17:25:15 +00:00
parent 898ad292ea
commit 2451c0dea6
16 changed files with 106 additions and 64 deletions

View File

@ -150,7 +150,7 @@ DLL_EXPORT void FoWChange::applyGs( CGameState *gs )
team->fogOfWarMap[t.x][t.y][t.z] = mode;
if (mode == 0) //do not hide too much
{
std::set<int3> tilesRevealed;
boost::unordered_set<int3, ShashInt3> tilesRevealed;
for (size_t i = 0; i < gs->map->objects.size(); i++)
{
if (gs->map->objects[i])