--- a/src/texteff.cpp Mon Mar 19 09:33:17 2007 +0000
+++ b/src/texteff.cpp Mon Mar 19 12:38:16 2007 +0000
@@ -23,7 +23,7 @@
MAX_ANIMATED_TILES = 256,
};
-typedef struct TextEffect {
+struct TextEffect {
StringID string_id;
int32 x;
int32 y;
@@ -32,14 +32,14 @@
uint16 duration;
uint32 params_1;
uint32 params_2;
-} TextEffect;
+};
-typedef struct TextMessage {
+struct TextMessage {
char message[MAX_TEXTMESSAGE_LENGTH];
uint16 color;
Date end_date;
-} TextMessage;
+};
static TextEffect _text_effect_list[MAX_TEXT_MESSAGES];
static TextMessage _textmsg_list[MAX_CHAT_MESSAGES];
@@ -55,7 +55,7 @@
extern void memcpy_pitch(void *dst, void *src, int w, int h, int srcpitch, int dstpitch);
-static inline uint GetTextMessageCount(void)
+static inline uint GetTextMessageCount()
{
uint i;
@@ -112,7 +112,7 @@
_textmessage_dirty = true;
}
-void InitTextMessage(void)
+void InitTextMessage()
{
uint i;
@@ -122,7 +122,7 @@
}
/* Hide the textbox */
-void UndrawTextMessage(void)
+void UndrawTextMessage()
{
if (_textmessage_visible) {
/* Sometimes we also need to hide the cursor
@@ -160,7 +160,7 @@
}
/* Check if a message is expired every day */
-void TextMessageDailyLoop(void)
+void TextMessageDailyLoop()
{
uint i;
@@ -184,7 +184,7 @@
}
/* Draw the textmessage-box */
-void DrawTextMessage(void)
+void DrawTextMessage()
{
uint y, count;
@@ -277,7 +277,7 @@
MarkTextEffectAreaDirty(te);
}
-void MoveAllTextEffects(void)
+void MoveAllTextEffects()
{
TextEffect *te;
@@ -286,7 +286,7 @@
}
}
-void InitTextEffects(void)
+void InitTextEffects()
{
TextEffect *te;
@@ -357,7 +357,7 @@
return false;
}
-void AnimateAnimatedTiles(void)
+void AnimateAnimatedTiles()
{
const TileIndex* ti;
@@ -366,12 +366,12 @@
}
}
-void InitializeAnimatedTiles(void)
+void InitializeAnimatedTiles()
{
memset(_animated_tile_list, 0, sizeof(_animated_tile_list));
}
-static void SaveLoad_ANIT(void)
+static void SaveLoad_ANIT()
{
/* In pre version 6, we has 16bit per tile, now we have 32bit per tile, convert it ;) */
if (CheckSavegameVersion(6)) {