|
@@ -128,10 +128,15 @@ void MapController::repairMap()
|
|
|
assert(type->heroClass);
|
|
|
//TODO: find a way to get proper type name
|
|
|
if(obj->ID == Obj::HERO)
|
|
|
+ {
|
|
|
nih->typeName = "hero";
|
|
|
+ nih->subTypeName = type->heroClass->identifier;
|
|
|
+ }
|
|
|
if(obj->ID == Obj::PRISON)
|
|
|
+ {
|
|
|
nih->typeName = "prison";
|
|
|
- nih->subTypeName = type->heroClass->identifier;
|
|
|
+ nih->subTypeName = "prison";
|
|
|
+ }
|
|
|
|
|
|
nih->type = type;
|
|
|
if(nih->name.empty())
|