mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
6b0f209626
* names of lods changed - rename your lod files to h3sprite.lod and h3bitmap.lod and place them in \Data subfolder (as in H3). * added several clickable buttons to adv. map interface * underground/surface switch button is functional * reading more text from ZELP.txt, added CPreGameTextHandler to CGameInfo * a lot of minor improvements/fixes(/bugs)
17 lines
387 B
C++
17 lines
387 B
C++
#include "stdafx.h"
|
|
#include "CObjectHandler.h"
|
|
#include "CGameInfo.h"
|
|
#include "CGeneralTextHandler.h"
|
|
|
|
void CObjectHandler::loadObjects()
|
|
{
|
|
int ID=0;
|
|
std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("OBJNAMES.TXT");
|
|
int it=0;
|
|
while (it<buf.length()-1)
|
|
{
|
|
CObject nobj;
|
|
CGeneralTextHandler::loadToIt(nobj.name,buf,it,3);
|
|
objects.push_back(nobj);
|
|
}
|
|
} |