windowns SDL librarys added

origin
stpohle 19 years ago
parent 5e6454f7a6
commit 0ec8e648db

@ -13,7 +13,8 @@ bomberclonedoc_DATA = \
ChangeLog\ ChangeLog\
INSTALL\ INSTALL\
NEWS\ NEWS\
TODO TODO \
bomberclone.nsi
EXTRA_DIST = bomberclone.prj $(bomberclonedoc_DATA) EXTRA_DIST = bomberclone.prj $(bomberclonedoc_DATA)

@ -5,7 +5,7 @@ dnl Please disable it in the Anjuta project configuration
AC_INIT(configure.in) AC_INIT(configure.in)
AC_CANONICAL_TARGET AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(bomberclone, 0.11.7p1) AM_INIT_AUTOMAKE(bomberclone, 0.11.7)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
AC_EXEEXT AC_EXEEXT

@ -1,4 +1,4 @@
/* $Id: main.c,v 1.33 2006/08/08 20:04:18 stpohle Exp $ */ /* $Id: main.c,v 1.34 2006/08/12 12:44:06 stpohle Exp $ */
#include "basic.h" #include "basic.h"
#include "bomberclone.h" #include "bomberclone.h"
@ -44,7 +44,7 @@ main (int argc, char **argv)
while (menuselect != -1 && bman.state != GS_quit) { while (menuselect != -1 && bman.state != GS_quit) {
menu = menu_new ("Bomberclone", 400, 250); // y=230 menu = menu_new ("Bomberclone", 400, 250);
menu_create_label (menu, VERSION, 300, 240, 0, COLOR_yellow); menu_create_label (menu, VERSION, 300, 240, 0, COLOR_yellow);
menu_create_button (menu, "Single Game", -1, 70, 200, 0); menu_create_button (menu, "Single Game", -1, 70, 200, 0);
menu_create_button (menu, "Multiplayer Game", -1, 100, 200, 1); menu_create_button (menu, "Multiplayer Game", -1, 100, 200, 1);

@ -1,4 +1,4 @@
/* $Id: udp.c,v 1.14 2006/08/08 20:04:19 stpohle Exp $ */ /* $Id: udp.c,v 1.15 2006/08/12 12:44:06 stpohle Exp $ */
/* udp.c code for the network /* udp.c code for the network
File Version 0.2 File Version 0.2
*/ */
@ -159,7 +159,7 @@ udp_send (int sock, char *text, int len, struct _sockaddr *sAddr, int ai_family)
/* send udp broadcasted message */ /* send udp broadcasted message */
void udp_sendbroadcast (int sock, char *text, int len, struct _sockaddr *sAddr, int ai_family) void udp_sendbroadcast (int sock, char *text, int len, struct _sockaddr *sAddr, int ai_family)
{ {
int value; unsigned char value;
value = 1; value = 1;
setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &value, sizeof (value)); setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &value, sizeof (value));

Loading…
Cancel
Save