mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
vcmi: remove unused variables from lib/rmg
This commit is contained in:
parent
3cf303f1c7
commit
0627e1ecaa
@ -241,7 +241,6 @@ bool ObjectManager::createRequiredObjects()
|
||||
for(const auto & object : requiredObjects)
|
||||
{
|
||||
auto * obj = object.first;
|
||||
int3 pos;
|
||||
rmg::Object rmgObject(*obj);
|
||||
rmgObject.setTemplate(zone.getTerrainType());
|
||||
bool guarded = addGuard(rmgObject, object.second, (obj->ID == Obj::MONOLITH_TWO_WAY));
|
||||
@ -278,7 +277,6 @@ bool ObjectManager::createRequiredObjects()
|
||||
for(const auto & object : closeObjects)
|
||||
{
|
||||
auto * obj = object.first;
|
||||
int3 pos;
|
||||
auto possibleArea = zone.areaPossible();
|
||||
rmg::Object rmgObject(*obj);
|
||||
rmgObject.setTemplate(zone.getTerrainType());
|
||||
|
@ -736,7 +736,6 @@ void TreasurePlacer::createTreasures(ObjectManager & manager)
|
||||
if(guarded)
|
||||
guarded = manager.addGuard(rmgObject, value);
|
||||
|
||||
int3 pos;
|
||||
auto possibleArea = zone.areaPossible();
|
||||
|
||||
auto path = rmg::Path::invalid();
|
||||
|
Loading…
Reference in New Issue
Block a user