Update of /cvsroot/xconq/xconq/x11
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv18084/x11
Modified Files:
Tag: BRANCH_MCAMPO_PATH
xcmd.c xcutil.c
Log Message:
Add changelog (mcampo.README) for BRANCH_MCAMPO_PATH.
Add files necessary for A* pathfinder.
Modify kernel to accomodate pathfinder.
Change capture and hit-unit behavior.
Index: xcutil.c
===================================================================
RCS file: /cvsroot/xconq/xconq/x11/xcutil.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.8.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.8.1
*** xcutil.c 21 Nov 2004 03:02:59 -0000 1.1.1.1
--- xcutil.c 8 Apr 2007 19:34:02 -0000 1.1.1.1.8.1
***************
*** 246,250 ****
img->rawpalette[4 * (img->numcolors - 1)] = (1 << img->pixelsize) - 1;
numbytes = img->h * rowbytes;
! img->rawcolrdata = xmalloc(numbytes);
memset(img->rawcolrdata, '\0', numbytes);
rp = img->rawcolrdata;
--- 246,250 ----
img->rawpalette[4 * (img->numcolors - 1)] = (1 << img->pixelsize) - 1;
numbytes = img->h * rowbytes;
! img->rawcolrdata = (char *) xmalloc(numbytes);
memset(img->rawcolrdata, '\0', numbytes);
rp = img->rawcolrdata;
Index: xcmd.c
===================================================================
RCS file: /cvsroot/xconq/xconq/x11/xcmd.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.8.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.8.1
*** xcmd.c 21 Nov 2004 03:02:59 -0000 1.1.1.1
--- xcmd.c 8 Apr 2007 19:34:01 -0000 1.1.1.1.8.1
***************
*** 876,880 ****
unit = find_unit(map->argunitid);
if (in_play(unit)) {
! if (impl_move_to(side, unit, x, y, 0)) {
return;
} else {
--- 876,880 ----
unit = find_unit(map->argunitid);
if (in_play(unit)) {
! if (impl_move_to(side, unit, NULL, x, y, 0)) {
return;
} else {
|