Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] Re: (PR#8521) sha.c crashes
Home

[Freeciv-Dev] Re: (PR#8521) sha.c crashes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8521) sha.c crashes
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sat, 17 Apr 2004 09:37:49 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8521 >

On Fri, 16 Apr 2004, Jason Short wrote:

> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8521 >
>
> I don't think the logic of
>
>    punit = create_unit_virtual(...);
>    punit2 = unit_clone(punit);
>    destroy_unit_virtual(punit);
>    destroy_unit(punit2);
>
> is good at all.  If punit2 is a virtual unit (which it obviously is) it
> should be destroyed by destroy_unit_virtual.
>
> Which leads me to conclude that destroy_unit should be removed and
> unit_clone should be clone_unit_virtual.
>
> A "virtual" unit is the part of the unit allocation that is common
> between client and server.  We don't need two concepts for this.

Why not call it model or core instead of virtual?

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa




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