1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

* Ubuntux's patch for Windows (now PreGame runs but we cannot start any game)

This commit is contained in:
mateuszb 2009-10-16 14:56:57 +00:00
parent 3cdefa2790
commit e88bec607b
2 changed files with 7 additions and 2 deletions

View File

@ -87,7 +87,10 @@ void CDefHandler::openFromMemory(unsigned char *table, std::string name)
palette[it].F = 0;
}
p = reinterpret_cast<unsigned char *>(de.blocks);
// The SDefEntryBlock starts just after the SDefEntry
p = reinterpret_cast<unsigned char *>(&de);
p += sizeof(de);
totalEntries=0;
for (unsigned int z=0; z<totalBlocks; z++)
{

View File

@ -47,7 +47,9 @@ struct SDefEntry {
unsigned char B;
} palette[256];
struct SDefEntryBlock blocks[];
// SDefEntry is followed by a series of SDefEntryBlock
// This is commented out because VC++ doesn't accept C99 syntax.
//struct SDefEntryBlock blocks[];
};
// Def entry in file. Integer fields are all little endian and will