mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-21 12:06:49 +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)
|
for(const auto & object : requiredObjects)
|
||||||
{
|
{
|
||||||
auto * obj = object.first;
|
auto * obj = object.first;
|
||||||
int3 pos;
|
|
||||||
rmg::Object rmgObject(*obj);
|
rmg::Object rmgObject(*obj);
|
||||||
rmgObject.setTemplate(zone.getTerrainType());
|
rmgObject.setTemplate(zone.getTerrainType());
|
||||||
bool guarded = addGuard(rmgObject, object.second, (obj->ID == Obj::MONOLITH_TWO_WAY));
|
bool guarded = addGuard(rmgObject, object.second, (obj->ID == Obj::MONOLITH_TWO_WAY));
|
||||||
@ -278,7 +277,6 @@ bool ObjectManager::createRequiredObjects()
|
|||||||
for(const auto & object : closeObjects)
|
for(const auto & object : closeObjects)
|
||||||
{
|
{
|
||||||
auto * obj = object.first;
|
auto * obj = object.first;
|
||||||
int3 pos;
|
|
||||||
auto possibleArea = zone.areaPossible();
|
auto possibleArea = zone.areaPossible();
|
||||||
rmg::Object rmgObject(*obj);
|
rmg::Object rmgObject(*obj);
|
||||||
rmgObject.setTemplate(zone.getTerrainType());
|
rmgObject.setTemplate(zone.getTerrainType());
|
||||||
|
@ -736,7 +736,6 @@ void TreasurePlacer::createTreasures(ObjectManager & manager)
|
|||||||
if(guarded)
|
if(guarded)
|
||||||
guarded = manager.addGuard(rmgObject, value);
|
guarded = manager.addGuard(rmgObject, value);
|
||||||
|
|
||||||
int3 pos;
|
|
||||||
auto possibleArea = zone.areaPossible();
|
auto possibleArea = zone.areaPossible();
|
||||||
|
|
||||||
auto path = rmg::Path::invalid();
|
auto path = rmg::Path::invalid();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user