Re: [Freeciv-Dev] [PATCH] cosmetic fix at server/stdinhand.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Markus Linnala (maage@xxxxxxxxx) wrote:
> Instead of using 0 use H_NONE. Also use & instead of + as I think it
> is best choice when you are messing with bitfields.
> - int h[11] = { -1, 0, 0, H_RATES+H_TARGETS+H_HUTS,
> - 0, H_RATES+H_TARGETS+H_HUTS, 0, 0,
> - 0, 0, 0 };
> + int h[11] = { -1,
> + H_NONE,
> + H_NONE,
> + H_RATES & H_TARGETS & H_HUTS,
You meant "|", not "&".
--
Greg Wooledge | Distributed.NET http://www.distributed.net/
wooledge@xxxxxxxxxxx | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |
|
|