Author: muggenhor
Date: Mon Jul 28 01:58:49 2008
New Revision: 5685

URL: http://svn.gna.org/viewcvs/warzone?rev=5685&view=rev
Log:
Get rid of the ID number cruft in the string resource system:
 * At the only place where these ID numbers where used (scrValDefSave and 
scrValDefLoad), use the key-string instead (e.g. "ZNULLBODY" instead of 17)
 * Rename function strresGetStringByID to strresGetString
 * Increment event save file version to 4 (version of savegame.es files)
 * Reject loading of savegames that need to load non-NULL ST_TEXTSTRING 
variables from version < 4

NOTE: This may break current savegames of games that use scripts with variables 
of type TEXTSTRING in them (AFAIK currently only ''some'' campaign and tutorial 
savegames have these).

This closes ticket:19

Modified:
    trunk/lib/framework/strres.c
    trunk/lib/framework/strres.h
    trunk/lib/framework/treap.c
    trunk/lib/framework/treap.h
    trunk/src/droid.c
    trunk/src/game.c
    trunk/src/message.c
    trunk/src/scriptobj.c
    trunk/src/scriptvals_parser.y
    trunk/src/stats.c


_______________________________________________
Warzone-commits mailing list
Warzone-commits@gna.org
https://mail.gna.org/listinfo/warzone-commits

Reply via email to