#include "stdafx.h" #include "CGameInfo.h" #include "CBuildingHandler.h" void CBuildingHandler::loadBuildings() { std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("BUILDING.TXT"); int andame = buf.size(); int i=0; //buf iterator int hmcr=0; for(i; i200 && buf.substr(i, buf.size()-i).find('\r')==std::string::npos) break; std::string firstStr; int befi=i; for(i; ibitmaph->getTextFile("BLDGSPEC.TXT"); int andame = buf.size(); int i=0; //buf iterator for(int ii=0; ii<9; ++ii) { for(int q=0; q<11; ++q) { if (q<9) //normal building names and descriptions { int befi=i; for(i; ibitmaph->getTextFile("BLDGNEUT.TXT"); int andame = buf.size(); int i=0; //buf iterator for(int q=0; q<15; ++q) { int befi=i; for(i; ibitmaph->getTextFile("DWELLING.TXT"); int andame = buf.size(); int i = 0; //buf iterator int whdw = 98; //wchich dwelling we are currently reading for(whdw; whdw<224; ++whdw) { int befi=i; for(i; i