Author: vasc
Date: Sat Dec 3 20:21:03 2005
New Revision: 11298
URL: http://svn.gna.org/viewcvs/freeciv?rev=11298&view=rev
Log:
We use the _freeciv_state_dump embedded Lua function to do introspection
of the variables to a code string.
_freeciv_state_dump was busted for boolean variables.
I figured _freeciv_state_dump was busted when I saw it wasn't returning
anything. I fixed it for booleans and numbers, and added an error
message so we will catch a bug there more easily if/when it happens again.
Bug reported by Jason Dorje Short. Patch by me under PR#13025.
Modified:
trunk/data/scenario/tutorial.sav
trunk/server/scripting/api.pkg
trunk/server/scripting/script.c