Fixed: Compiling with mingw once again works, although savegame loading problems are not yet fixed.

SVN r31 (trunk)
This commit is contained in:
Randy Heit 2006-04-12 03:03:58 +00:00
commit ec4b8719aa
17 changed files with 76 additions and 66 deletions

View file

@ -327,7 +327,8 @@ void FDecalLib::DelTree (FDecalBase *root)
void FDecalLib::ReadAllDecals ()
{
int i, lump, lastlump = 0;
int lump, lastlump = 0;
size_t i;
while ((lump = Wads.FindLump ("DECALDEF", &lastlump)) != -1)
{
@ -341,7 +342,7 @@ void FDecalLib::ReadAllDecals ()
AActor *def = (AActor*)GetDefaultByType (TypeInfo::m_RuntimeActors[i]);
intptr_t v = (intptr_t)def->DecalGenerator;
if (v > 0 && v <= DecalNames.Size())
if (v > 0 && v <= (intptr_t)DecalNames.Size())
{
def->DecalGenerator = ScanTreeForName (DecalNames[v-1], Root);
}