Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: goto from Trieme with Lighthouse (PR#915)
Home

[Freeciv-Dev] Re: goto from Trieme with Lighthouse (PR#915)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ue80@xxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: goto from Trieme with Lighthouse (PR#915)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Aug 2001 16:49:11 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Mon, Aug 27, 2001 at 06:45:25AM -0700, ue80@xxxxxxxxxxxxxxxxxxx wrote:
> Full_Name: Thomas Strub
> Version: 1.12.0
> Distribution: Built from source
> Client: Gtk+
> OS: Linux 2.4.7
> Submission from: (NULL) (129.13.64.202)
> 
> 
> When using the client goto-function for a Trieme when Ligthhouse i build and 
> is
> useful. The goto-Function don't care about the 0% chance that triemes sink.
> 
> line 394 from  client/goto.c
>       } else if (unit_flag(punit->type, F_TRIREME) && (0
> !=trireme_loss_pct(&punit->owner, x1, y1)) && !is_coastline(x1, y1)) {
> 
> the same in server/gotohand.c 
> Line 774
>       else if (unit_flag(punit->type, F_TRIREME) && 
> trireme_loss_pct(&punit->owner,
> x1, y1) && !is_coastline(x1, y1)) {
> 
> same file Line 1035
> but i don't know how that line works ...

Good spotting. So you basically want something like the attached
patch?!

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  (On the statement print "42 monkeys"+"1 snake"): BTW, both perl and Python
  get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when 
  the answer is clearly "41 monkeys and 1 fat snake".  
    -- Jim Fulton, 10 Aug 1999

Attachment: trireme1.diff
Description: Text document


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