mismatch. First, the md4 checksum is stored in the mesh, and the md4 checksum
of the mesh and the model checksum are also stored. If, on loading, either
checksum fails, the model is re-meshed.
include/mdfour.h:
Add define for MDFOUR_DIGEST_BYTES
source/.gdbinit
setrom _windowed_mouse 0 so mods don't make debugging difficult
source/model_alias.c:
pass original model data and size to GL_MakeAliasModelDisplayLists
source/sw_model_alias.c:
GL_MakeAliasModelDisplayLists take (but ignore) new params
source/gl_mesh.c:
do md4 checksums on the model and mesh
extension, but the unix file command (and peering at the file when you know
what to look for) verifies that they are gzip files. This should save a little
space (files compress by 40-80%)
strncat is not the maximum length of the destination string, but of the SOURCE
string, thus strncat (dest, src, sizeof (dest)) is incorrect. It should be
strncat (dest, src, sizeof (text) - strlen (dest)). Even then, no terminating
nul will be written if src is too long, but at least it won't crash the stack:)
little problem of mixed QFile and FILE. Since we're not using ZLib in
this tree, QFile makes no real sense. That didn't fix the real problem
I am having though.
split up the headerfiles and such. common.[ch] and qwsvdef.h no longer exist. More work still needs to be done (esp for windows) but this should be a major improvement.