From 313f940e7e7b111636d7b788f40e0eebd0edc428 Mon Sep 17 00:00:00 2001 From: mateuszb Date: Sat, 2 Feb 2008 13:06:33 +0000 Subject: [PATCH] small and unfortunately partial bugfix --- hch/CAmbarCendamo.cpp | 7 +++++++ hch/CAmbarCendamo.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hch/CAmbarCendamo.cpp b/hch/CAmbarCendamo.cpp index 51b0db90b..e2c6cc506 100644 --- a/hch/CAmbarCendamo.cpp +++ b/hch/CAmbarCendamo.cpp @@ -2325,6 +2325,11 @@ void CAmbarCendamo::deh3m() nobj->info = spec; break; } + case EDefType::HEROPLACEHOLDER_DEF: + { + i+=3; //TODO: handle it more properly + break; + } } //end of main switch CGameInfo::mainObj->objh->objInstances.push_back(nobj); //TODO - dokończyć, dużo do zrobienia - trzeba patrzeć, co def niesie @@ -2490,6 +2495,8 @@ EDefType CAmbarCendamo::getDefType(CGDefInfo * a) return EDefType::TOWN_DEF; //handled case 113: return EDefType::WITCHHUT_DEF; //handled + case 214: + return EDefType::HEROPLACEHOLDER_DEF; //partially handled case 215: return EDefType::BORDERGUARD_DEF; //handled by analogy to seer huts ;] case 216: diff --git a/hch/CAmbarCendamo.h b/hch/CAmbarCendamo.h index add72ecf9..1e41a6705 100644 --- a/hch/CAmbarCendamo.h +++ b/hch/CAmbarCendamo.h @@ -11,7 +11,7 @@ #include "CDefHandler.h" #include "CCreatureHandler.h" -enum EDefType {TOWN_DEF, HERO_DEF, CREATURES_DEF, SEERHUT_DEF, RESOURCE_DEF, TERRAINOBJ_DEF, EVENTOBJ_DEF, SIGN_DEF, GARRISON_DEF, ARTIFACT_DEF, WITCHHUT_DEF, SCHOLAR_DEF, PLAYERONLY_DEF, SHRINE_DEF, SPELLSCROLL_DEF, PANDORA_DEF, GRAIL_DEF, CREGEN_DEF, CREGEN2_DEF, CREGEN3_DEF, BORDERGUARD_DEF}; +enum EDefType {TOWN_DEF, HERO_DEF, CREATURES_DEF, SEERHUT_DEF, RESOURCE_DEF, TERRAINOBJ_DEF, EVENTOBJ_DEF, SIGN_DEF, GARRISON_DEF, ARTIFACT_DEF, WITCHHUT_DEF, SCHOLAR_DEF, PLAYERONLY_DEF, SHRINE_DEF, SPELLSCROLL_DEF, PANDORA_DEF, GRAIL_DEF, CREGEN_DEF, CREGEN2_DEF, CREGEN3_DEF, BORDERGUARD_DEF, HEROPLACEHOLDER_DEF}; class CAmbarCendamo {