Adapt to new sdl-net.

from Brad
This commit is contained in:
ajacoutot 2012-04-05 16:26:32 +00:00
parent 943826fc60
commit 2ed4ce70f8
2 changed files with 15 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.3 2011/12/12 13:53:17 fgsch Exp $ # $OpenBSD: Makefile,v 1.4 2012/04/05 16:26:32 ajacoutot Exp $
COMMENT= free software clone of Worms(R) game concept COMMENT= free software clone of Worms(R) game concept
DISTNAME= warmux-11.04.1 DISTNAME= warmux-11.04.1
REVISION= 1 REVISION= 2
WRKDIST= ${WRKDIR}/warmux-11.04 WRKDIST= ${WRKDIR}/warmux-11.04
CATEGORIES= games CATEGORIES= games
@ -25,7 +25,7 @@ RUN_DEPENDS= devel/desktop-file-utils
LIB_DEPENDS= devel/sdl-gfx \ LIB_DEPENDS= devel/sdl-gfx \
devel/sdl-image \ devel/sdl-image \
devel/sdl-mixer \ devel/sdl-mixer \
devel/sdl-net \ devel/sdl-net>=1.2.8 \
devel/sdl-ttf \ devel/sdl-ttf \
net/curl \ net/curl \
textproc/libxml textproc/libxml

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_warmux_action_action_cpp,v 1.1 2012/04/05 16:26:32 ajacoutot Exp $
--- lib/warmux/action/action.cpp.orig Sat Mar 17 14:13:52 2012
+++ lib/warmux/action/action.cpp Sat Mar 17 14:14:06 2012
@@ -85,7 +85,7 @@ Action::Action(const char *buffer, DistantComputer* _c
{
m_creator = _creator;
- m_header.len = SDLNet_Read32(buffer);
+ m_header.len = SDLNet_Read32((Uint32*)buffer);
ASSERT(m_header.len >= sizeof(Header));
buffer += 4;
// All of the following could be skipped for the actions we now,