mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 19:37:07 +00:00
[Sync] Project Sync plus Revision changes
The main revision system changes are based on FoeReapers work in:
b37de3b83e
This commit is contained in:
parent
f5e2d53ccc
commit
bf4b6fafc5
39 changed files with 684 additions and 416 deletions
|
|
@ -50,7 +50,6 @@ bool DBCFileLoader::Load(const char* filename, const char* fmt)
|
|||
}
|
||||
|
||||
EndianConvert(header);
|
||||
|
||||
if (header != 0x43424457) //'WDBC'
|
||||
{
|
||||
fclose(f);
|
||||
|
|
@ -366,11 +365,9 @@ char* DBCFileLoader::AutoProduceStrings(const char* format, char* dataTable, Loc
|
|||
break;
|
||||
case DBC_FF_STRING:
|
||||
{
|
||||
char** holder = *((char***)(&dataTable[offset]));
|
||||
char** slot = &holder[loc];
|
||||
|
||||
// fill only not filled entries
|
||||
if (*slot == nullStr)
|
||||
char** slot = (char**)(&dataTable[offset]);
|
||||
if (!*slot || !** slot)
|
||||
{
|
||||
const char* st = getRecord(y).getString(x);
|
||||
*slot = stringPool + (st - (const char*)stringTable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue