Sanitized version hash. Moved WIP version box check to check AFTER previous version number is loaded.

This commit is contained in:
n-a-c-h
2006-02-14 21:52:18 +00:00
parent 2e8439b0f5
commit 6d37656f82
3 changed files with 22 additions and 25 deletions

View File

@@ -21,6 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <string.h>
#include <zlib.h>
char *VERSION_STR;
@@ -39,3 +40,9 @@ void placetime()
strlen(VERSION_STR) -
strlen(__TIME__), __TIME__);
}
unsigned int version_hash()
{
return(~crc32(crc32(0, (const unsigned char *)__DATE__, strlen(__DATE__)), (const unsigned char *)__TIME__, strlen(__TIME__)));
}