Skip to content

Commit

Permalink
Fixed compilation errors on gcc 10 because it is more strict (which i…
Browse files Browse the repository at this point in the history
…s good, my code made not much sense tbh)
  • Loading branch information
theZiz committed Oct 6, 2020
1 parent df2b65c commit 31d6840
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 90 deletions.
5 changes: 2 additions & 3 deletions about.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void start_about(spFontPointer font, void ( *resize )( Uint16 w, Uint16 h ))
window->height += font->maxheight*16;
window->only_ok = 1;
modal_window(window,resize);
delete_window(window);
delete_window(window);
}

const char help_text[] =
Expand Down Expand Up @@ -45,7 +45,6 @@ const char help_text[] =

spTextBlockPointer help_block;
Sint32 help_scroll;
spFontPointer help_font;
struct
{
int x;
Expand Down Expand Up @@ -189,6 +188,6 @@ void start_help(spFontPointer font, void ( *resize )( Uint16 w, Uint16 h ))
help_scroll = 0;
help_font = font;
spLoop(help_draw,help_calc,10,resize,NULL);

spDeleteTextBlock(help_block);
}
3 changes: 1 addition & 2 deletions client.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spNetIP ip;

char hase_url[512] = "";
char hase_gzip = 0;
int last_heartbeat_diff = -1;

void addToMessage(pMessage *message, char* name, char* content)
{
Expand Down Expand Up @@ -39,8 +40,6 @@ void deleteMessage(pMessage *message)
#define INPUT_COMPRESSION
#endif

int last_heartbeat_diff = -1;

pMessage sendMessage(pMessage message,char* binary_name,void* binary,int count,char* dest,char* server)
{
char boundary[17] = "A9B8C7D6E5F4G3H2"; //This should maybe random...
Expand Down
2 changes: 2 additions & 0 deletions client.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ typedef struct sThreadData
pThreadData next;
} tThreadData;

extern int last_heartbeat_diff;

int server_info();
pGame create_game(char* game_name,Uint32 options,int seconds_per_turn,char* level_string,int local,int hares_per_player);
void delete_game_list(pGame game);
Expand Down
Loading

0 comments on commit 31d6840

Please sign in to comment.