--- a/functions.h Mon Dec 13 09:01:24 2004 +0000
+++ b/functions.h Mon Dec 13 11:17:59 2004 +0000
@@ -134,7 +134,7 @@
void InitTextMessage();
void DrawTextMessage();
-void AddTextMessage(uint16 color, uint8 duration, const char *message, ...);
+void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...);
void UndrawTextMessage();
void TextMessageDailyLoop();
--- a/gfx.c Mon Dec 13 09:01:24 2004 +0000
+++ b/gfx.c Mon Dec 13 11:17:59 2004 +0000
@@ -1510,7 +1510,7 @@
int j;
int i;
const ExtraPaletteValues *ev = &_extra_palette_values;
- byte old_val[c*3];
+ byte old_val[114]; // max(c*(38:28)) = 114
d = _cur_palette + 217*3;
memcpy(old_val, d, c*3);
--- a/md5.c Mon Dec 13 09:01:24 2004 +0000
+++ b/md5.c Mon Dec 13 11:17:59 2004 +0000
@@ -53,6 +53,7 @@
#include "md5.h"
#include <string.h>
+#include "stdafx.h"
#undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian, 0 = unknown */
#ifdef ARCH_IS_BIG_ENDIAN
--- a/network.c Mon Dec 13 09:01:24 2004 +0000
+++ b/network.c Mon Dec 13 11:17:59 2004 +0000
@@ -61,7 +61,7 @@
// This puts a text-message to the console, or in the future, the chat-box,
// (to keep it all a bit more general)
-void NetworkTextMessage(NetworkAction action, uint16 color, const char *name, const char *str, ...)
+void CDECL NetworkTextMessage(NetworkAction action, uint16 color, const char *name, const char *str, ...)
{
char buf[1024];
va_list va;
--- a/network_data.h Mon Dec 13 09:01:24 2004 +0000
+++ b/network_data.h Mon Dec 13 11:17:59 2004 +0000
@@ -210,7 +210,7 @@
// from network.c
void CloseClient(ClientState *cs);
-void NetworkTextMessage(NetworkAction action, uint16 color, const char *name, const char *str, ...);
+void CDECL NetworkTextMessage(NetworkAction action, uint16 color, const char *name, const char *str, ...);
void NetworkGetClientName(char *clientname, size_t size, ClientState *cs);
uint NetworkCalculateLag(const ClientState *cs);
byte NetworkGetCurrentLanguageIndex();