Fix build with clang

PR:		ports/182037
Submitted by:	maintainer
MFH:		2014Q1
This commit is contained in:
Pawel Pekala 2014-02-04 18:58:58 +00:00
parent 49f00e9f0d
commit 138d321465
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342588
2 changed files with 13 additions and 2 deletions

View File

@ -12,8 +12,8 @@ COMMENT= Free online multiplayer real-time roguelike game
ALL_TARGET= mangclient mangband
WRKSRC= ${WRKDIR}/${DISTNAME}/src
GNU_CONFIGURE= yes
USES= ncurses
USE_GMAKE= yes
USES= dos2unix gmake ncurses
DOS2UNIXFILES= ${WRKSRC}/client/main-sdl.c
MAKE_ARGS= "DATADIR=${DATADIR}"

View File

@ -0,0 +1,11 @@
--- client/main-sdl.c.orig 2014-02-04 19:51:35.412181886 +0100
+++ client/main-sdl.c 2014-02-04 19:51:50.859119136 +0100
@@ -1031,7 +1031,7 @@
//if (td->cx != -1 && td->cy != -1) {
// RedrawChar(td->cx, td->cy);
// }
- if (td->cx == x && td->cy == y) return;
+ if (td->cx == x && td->cy == y) return (0);
//if (x == -1 && y == -1) return;
if (td->cursor_on)
{