Adapt to new sdl-net.
from Brad
This commit is contained in:
parent
943826fc60
commit
2ed4ce70f8
@ -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
|
||||
|
||||
DISTNAME= warmux-11.04.1
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
WRKDIST= ${WRKDIR}/warmux-11.04
|
||||
CATEGORIES= games
|
||||
|
||||
@ -25,7 +25,7 @@ RUN_DEPENDS= devel/desktop-file-utils
|
||||
LIB_DEPENDS= devel/sdl-gfx \
|
||||
devel/sdl-image \
|
||||
devel/sdl-mixer \
|
||||
devel/sdl-net \
|
||||
devel/sdl-net>=1.2.8 \
|
||||
devel/sdl-ttf \
|
||||
net/curl \
|
||||
textproc/libxml
|
||||
|
12
games/warmux/patches/patch-lib_warmux_action_action_cpp
Normal file
12
games/warmux/patches/patch-lib_warmux_action_action_cpp
Normal 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,
|
Loading…
Reference in New Issue
Block a user