Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/g
Home

[Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/g

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/games/44610
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 25 Oct 2002 01:18:41 +0200

On Thu, Oct 24, 2002 at 10:02:53PM +0000, Per I. Mathisen wrote:
> On Thu, 24 Oct 2002, Raimar Falke wrote:
> > > The assert came from here:
> > >
> > >     is_real = MAPSTEP(x, y, punit->x, punit->y, dir);
> > >     assert(is_real);
> > >
> > > as is_real=0, where x=27, y=35, punit->x=27, punit->y=34, dir=0,
> >
> > This is expected if map.ysize=35. However the step from (27,34) to
> > (27,35) isn't correct for this direction dir=0=DIR8_NORTHWEST.
> >
> > So can you please give map.xsize and map.ysize?
> 
> You are correct: map.xsize = 50, map.ysize = 35
> 
> It is a transport on its way to (23, 32) under AI control. Why did it go
> to (27,35)?
> 
> Other variables set inside the do loop:
> 
>  last_tile = FALSE;
>  waypoint_x = 23
>  waypoint_y = 32
>  penemy = NULL
>  punit->moves_left = 3
>  dest_x = 23
>  dest_y = 32
>  success is undefined

The direction DIR8_NORTHWEST agrees with the destination. So the
question is why did normalize_map_pos changed (27-1,34-1) to (27,35)
and returned FALSE. I have no clue.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "It is not yet possible to change operating system by writing
  to /proc/sys/kernel/ostype."              sysctl(2) man page


[Prev in Thread] Current Thread [Next in Thread]