[Freeciv-Dev] Re: (PR#7408) unit_list_size(&ptile->units) == 0 Again (Se
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: (PR#7408) unit_list_size(&ptile->units) == 0 Again (Sea barbarians) |
From: |
"mateusz stefek" <matusik_s@xxxxx> |
Date: |
Tue, 17 Feb 2004 06:10:54 -0800 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7408 >
Dnia 2004.02.17 09:40, Jason Short napisał(a):
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7408 >
>
> mateusz stefek wrote:
>
> > And another problem: What about transported missiles in submarines?
> > Suppose that players A and B are allied, but no shared vision.B's loaded
> > submarine is two tiles from A transport.
> > Players are allied, but without shared vision. It seems that
> > can_player_see_unit_at2(A, unit) returns TRUE for the missile and FALSE for
> > the submarine.
>
> Players know about transported units of allied players, not players with
> shared vision. Of course they must be able to see the tile for it to
> work; this is where shared vision comes into play.
>
> The same rules _should_ apply to invisible units, but I don't know if
> they do.
>
The problem is that submarine is invisible because it's invisible, but missile
is visible, because it is allied. (There is no shared vision, but player A
somehow can see that tile).
can_player_see_unit_* functions should check if transporter is visible(because
it can be partial invisible unit).
--
mateusz
|
|