[Freeciv-Dev] You must #define preprocessor constants before using them.

2009-04-12 Thread James Supancic
I have recently updated my local copy of the freeciv trunk. I have noticed that the following: GAME_DEFAULT_GOLD_UPKEEP_STYLE GAME_MAX_GOLD_UPKEEP_STYLE GAME_MIN_GOLD_UPKEEP_STYLE Are used in ruleset.c but not #defined anywhere. I suspect someone commited ruelset.c but failed to commit ruleset.h?

Re: [Freeciv-Dev] You must #define preprocessor constants before using them.

2009-04-12 Thread James Supancic
I removed game.h and then did svn up again and now it is working. I guess I should have double checked before posting here... sorry for the confusion. Thank you for your time, James Steven Supancic III ___ Freeciv-dev mailing list Freeciv-dev@gna.org

[Freeciv-Dev] How should the GUI determine when the client data has changed?

2007-06-24 Thread James Supancic
I'm working on a GUI for freeciv. In my main loop I call input_from_server to allow the main client code to receive data from the server and update the game state data accordingly. How can I determine when the data has changed? Can I set callbacks for this? Should I switch() on the incoming

[Freeciv-Dev] You can't alter const objects?

2007-06-08 Thread James Supancic
In resource_name_translation, in terrain.c you are altering the value of a const parameter. This is not allowed, and gcc 4.1 tells us this with: terrain.c: In function 'resource_name_translation': terrain.c:244: error: assignment of read-only location I'm not sure how this should be fixed? Maybe

Re: [Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-04 Thread James Supancic
Even with -fpermissive g++ rejects it. I moved the enum typedef from fc_types.h to unit.h (after the enum declaration) and did 'make clean make' and everything builds fine. It looks like the attached patch does what I need (as far as I know at this point). Basically I use an #ifdef __cplusplus

[Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-03 Thread James Supancic
I'm working on a C++ GUI for freeciv. I need to make some calls into the C component of client. The problem I'm running into is that the freeciv header files are neither standard C or C++ compatible. For example: typedef enum a b; enum a { A, B }; When this is compiled with g++ or 'gcc

[Freeciv-Dev] Ogre3D UI?

2007-05-15 Thread James Supancic
I am thinking about working on an Ogre3D GUI for freeciv. I've been looking over the code in freeciv/freeciv/client/gui-* and think I might be able to develop something nice. My question is, if I develop it, will it be accepted? I noted that freeciv has been written in mostly pure C. This is no

[Freeciv-Dev] (PR#38363) freecive: failure to use SDL.

2007-03-18 Thread James Supancic
URL: http://bugs.freeciv.org/Ticket/Display.html?id=38363 Version: freeciv-2.0.9. Output: 1: Error calling Mix_OpenAudio 1: Plugin sdl found but can't be initialized. 1: Plugin esd found but can't be initialized. 1: Plugin alsa found but can't be initialized. 1: No real audio subsystem managed