[Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map |
From: |
"Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx> |
Date: |
Sun, 25 Apr 2004 14:20:21 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8584 >
Jason Short wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8584 >
>
> Raimar Falke wrote:
>
>
>>Do you want
>>
>>type UINT16 = uint16(uint2)
>
>
> No. I want a type uint2 that is a 2-bit integer (along with uint1 and
> maybe others). The packet code knows that 4 uint2s can be packed into a
> uint8. So if you have an array
>
> UINT2 city_map[25];
Or more precisely:
# Two-bit value.
type CITY_MAP = uint2(enum city_tile_type)
# This fills 7 bytes.
CITY_MAP city_map[25];
jason
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Jason Short, 2004/04/24
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Raimar Falke, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Raimar Falke, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Jason Short, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Jason Short, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Raimar Falke, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Raimar Falke, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Jason Short, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map, Jason Short, 2004/04/25
- [Freeciv-Dev] Re: (PR#8584) remove dio_[put|get]_city_map,
Jason Short <=
|
|