diff --git a/qw_client/gl_model.c b/qw_client/gl_model.c index 9fffa8b..8ce2eef 100644 --- a/qw_client/gl_model.c +++ b/qw_client/gl_model.c @@ -1352,13 +1352,13 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer) for (i = 0; i < HEADER_LUMPS; i++) { if (i == LUMP_ENTITIES) continue; - mod->checksum ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs, - header->lumps[i].filelen); + mod->checksum ^= LittleLong(Com_BlockChecksum(mod_base + header->lumps[i].fileofs, + header->lumps[i].filelen)); if (i == LUMP_VISIBILITY || i == LUMP_LEAFS || i == LUMP_NODES) continue; - mod->checksum2 ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs, - header->lumps[i].filelen); + mod->checksum2 ^= LittleLong(Com_BlockChecksum(mod_base + header->lumps[i].fileofs, + header->lumps[i].filelen)); } diff --git a/qw_client/model.c b/qw_client/model.c index f759449..f150f62 100644 --- a/qw_client/model.c +++ b/qw_client/model.c @@ -1150,13 +1150,13 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer) for (i = 0; i < HEADER_LUMPS; i++) { if (i == LUMP_ENTITIES) continue; - mod->checksum ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs, - header->lumps[i].filelen); + mod->checksum ^= LittleLong(Com_BlockChecksum(mod_base + header->lumps[i].fileofs, + header->lumps[i].filelen)); if (i == LUMP_VISIBILITY || i == LUMP_LEAFS || i == LUMP_NODES) continue; - mod->checksum2 ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs, - header->lumps[i].filelen); + mod->checksum2 ^= LittleLong(Com_BlockChecksum(mod_base + header->lumps[i].fileofs, + header->lumps[i].filelen)); } // load into heap