mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
* compilation fix under VC++
* fix for a bug that prevented from loading a map (convertHordes cannot be called before town field is set) * normalized line endings in CBitmapHandler.cpp
This commit is contained in:
@@ -158,7 +158,7 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if(e->offset<0)
|
if(e->offset<0)
|
||||||
{
|
{
|
||||||
fname = e->realName;
|
fname = e->realName;
|
||||||
fname = DATA_DIR "/Data/" + fname;
|
fname = DATA_DIR "/Data/" + fname;
|
||||||
FILE * f = fopen(fname.c_str(),"r");
|
FILE * f = fopen(fname.c_str(),"r");
|
||||||
|
@@ -1168,7 +1168,7 @@ void CGameState::randomizeObject(CGObjectInstance *cur)
|
|||||||
t->defInfo = forts[t->subID];
|
t->defInfo = forts[t->subID];
|
||||||
else
|
else
|
||||||
t->defInfo = villages[t->subID];
|
t->defInfo = villages[t->subID];
|
||||||
convertHordes(t);
|
//convertHordes(t);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user