Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] Re: (PR#13003) tile_activity patch
Home

[Freeciv-Dev] Re: (PR#13003) tile_activity patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13003) tile_activity patch
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 May 2005 13:10:15 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13003 >

Brian Dunstan wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=13003 >
> 
> This patch adds a function
> 
> tile_activity(tile, activity)

Seems reasonable.  I think it should be tile_apply_activity or
tile_do_activity instead.

> The patch I've made is one implementation; I'm sure
> others can think of some way it might be done better :)

1.  I think the functions tile_transform, etc., should be made static.

2.  Don't have a "default" case.

3.  Don't manipulate ptile->special directly.  Use map_set_special or
map_clear_special.

-jason





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