fixed nethash

This commit is contained in:
oy 2011-02-13 13:06:19 +01:00
parent 0ec755ee74
commit 3c7adc6a7f
3 changed files with 5 additions and 3 deletions

View file

@ -31,6 +31,6 @@ for filename in sys.argv[1:]:
hash = hashlib.md5(f).hexdigest().lower()[16:]
# TODO: refactor hash that is equal to the 0.5 hash, remove when we
# TODO: remove when we don't need it any more
if hash == "c139dc3e0152dff6":
if hash == "8755162e69711f98":
hash = "b67d1f1a1eea234e"
print('#define GAME_NETVERSION_HASH "%s"' % hash)

View file

@ -1340,12 +1340,14 @@ void gui_messagebox(const char *title, const char *message)
RunStandardAlert(theItem, NULL, &itemIndex);
#elif defined(CONF_FAMILY_UNIX)
static char cmd[1024];
int err;
/* use xmessage which is available on nearly every X11 system */
snprintf(cmd, sizeof(cmd), "xmessage -center -title '%s' '%s'",
title,
message);
int err = system(cmd);
err = system(cmd);
dbg_msg("gui/msgbox", "result = %i", err);
#elif defined(CONF_FAMILY_WINDOWS)
MessageBox(NULL,
message,

View file

@ -1133,4 +1133,4 @@ void CGameContext::OnPostSnap()
const char *CGameContext::Version() { return GAME_VERSION; }
const char *CGameContext::NetVersion() { return GAME_NETVERSION; }
IGameServer *CreateGameServer() { return new CGameContext; }
IGameServer *CreateGameServer() { return new CGameContext; }