Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/GameInterface/Handlers/ObjectHandlers.cpp
Context not available. | |||||||||||||||
std::vector<entity_id_t> ids; | std::vector<entity_id_t> ids; | ||||||||||||||
player_id_t playerID = msg->player; | player_id_t playerID = msg->player; | ||||||||||||||
const CSimulation2::InterfaceListUnordered& cmps = g_Game->GetSimulation2()->GetEntitiesWithInterfaceUnordered(IID_Ownership); | SComponentDataGenerator* cmps = g_Game->GetSimulation2()->GetEntitiesWithInterfaceUnordered(IID_Ownership); | ||||||||||||||
for (CSimulation2::InterfaceListUnordered::const_iterator eit = cmps.begin(); eit != cmps.end(); ++eit) | while(IComponent* cmp = cmps->Next()) | ||||||||||||||
Stan: indent | |||||||||||||||
{ | { | ||||||||||||||
if (static_cast<ICmpOwnership*>(eit->second)->GetOwner() == playerID) | if (static_cast<ICmpOwnership*>(cmp)->GetOwner() == playerID) | ||||||||||||||
{ | { | ||||||||||||||
ids.push_back(eit->first); | ids.push_back(cmp->GetEntityId()); | ||||||||||||||
Done Inline ActionsUnrelated, but worth considering std::move()ing the RHS to avoid a copy jprahman: Unrelated, but worth considering `std::move()`ing the RHS to avoid a copy | |||||||||||||||
} | } | ||||||||||||||
} | } | ||||||||||||||
Done Inline Actions
Stan: | |||||||||||||||
Context not available. |
Wildfire Games · Phabricator
indent