[Warzone-commits] r5650 - in /trunk/src: display3d.c init.c

2008-07-24 Thread Freddie Witherden
Author: evilguru Date: Thu Jul 24 12:13:22 2008 New Revision: 5650 URL: http://svn.gna.org/viewcvs/warzone?rev=5650view=rev Log: Remove some dead #ifdef'ed code (#ifdef ARROWS). Modified: trunk/src/display3d.c trunk/src/init.c ___

[Warzone-commits] r5653 - /trunk/src/multisync.c

2008-07-24 Thread Freddie Witherden
Author: evilguru Date: Thu Jul 24 16:11:14 2008 New Revision: 5653 URL: http://svn.gna.org/viewcvs/warzone?rev=5653view=rev Log: Break out of the droid sync loop early if there are no more droids to sync. Modified: trunk/src/multisync.c ___

[Warzone-commits] r5651 - /trunk/src/projectile.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 15:59:07 2008 New Revision: 5651 URL: http://svn.gna.org/viewcvs/warzone?rev=5651view=rev Log: Compiler warns about an uninitialized variable, `distanceExtensionFactor`, being used. So initialize this variable with an uninitialized marker and assert that it

[Warzone-commits] r5654 - in /trunk/lib/framework: strres.c strres_parser.y strresly.h

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 16:16:27 2008 New Revision: 5654 URL: http://svn.gna.org/viewcvs/warzone?rev=5654view=rev Log: * Get rid of global variable *psCurrRes, which is used by the strres_parser to operate on * Instead pass the current STR_RES* pointer to work on to the parser

[Warzone-commits] r5652 - /trunk/lib/framework/strres.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 15:59:16 2008 New Revision: 5652 URL: http://svn.gna.org/viewcvs/warzone?rev=5652view=rev Log: Get rid of the ID_ALLOC bitflag (marks strings allocated by the string resource system), as ''all'' strings are allocated by the string resource system anyway.

[Warzone-commits] r5655 - in /trunk: lib/framework/strres.c lib/framework/strres.h src/feature.c src/function.c src/research.c src/stats.c src/stats.h src/structure.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 18:13:03 2008 New Revision: 5655 URL: http://svn.gna.org/viewcvs/warzone?rev=5655view=rev Log: Return the retrieved string from strresGetIDString and allocateName and use NULL to indicate failure. Modified: trunk/lib/framework/strres.c

[Warzone-commits] r5656 - in /trunk: lib/framework/strres.c lib/framework/strres.h src/stats.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 18:13:08 2008 New Revision: 5656 URL: http://svn.gna.org/viewcvs/warzone?rev=5656view=rev Log: * Change strresGetIDString to return its ID string const * Change allocateName to do as the name suggests and actually ''allocate'' a string! Modified:

[Warzone-commits] r5657 - /trunk/lib/framework/strres.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 18:13:14 2008 New Revision: 5657 URL: http://svn.gna.org/viewcvs/warzone?rev=5657view=rev Log: * Move the allocation and initialisation of STR_ID structures to a function of its own: strresAllocIDStr * Allocate STR_ID structures in such a way that a single

[Warzone-commits] r5660 - in /trunk: lib/framework/strres.c lib/framework/strres.h src/text.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 20:57:09 2008 New Revision: 5660 URL: http://svn.gna.org/viewcvs/warzone?rev=5660view=rev Log: Replace the linked list of arrays of string pointers (premature) optimisation with just a linked list of strings Modified: trunk/lib/framework/strres.c

[Warzone-commits] r5658 - in /trunk: lib/framework/strres.c lib/framework/strres.h src/game.c src/message.c src/scriptobj.c src/scriptvals.c src/scriptvals.h src/scriptvals_parser.y src/stats.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 20:18:07 2008 New Revision: 5658 URL: http://svn.gna.org/viewcvs/warzone?rev=5658view=rev Log: * Change strresGetString to return its string as const (to prevent potential double-free problems) * Instead use strdup() where a non-const reference to these

[Warzone-commits] r5659 - in /trunk/src: message.c messagedef.h scriptfuncs.c seqdisp.c seqdisp.h

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 20:42:45 2008 New Revision: 5659 URL: http://svn.gna.org/viewcvs/warzone?rev=5659view=rev Log: * Make the ppTextMsg string arrays of VIEWDATA and SEQ_DISPLAY hold there strings as const references * Don't use strdup() to assign the strings to ppTextMsg's

[Warzone-commits] r5661 - in /trunk: lib/framework/strres.c lib/framework/strres.h src/droid.c src/game.c src/message.c src/scriptvals.c src/stats.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 22:10:16 2008 New Revision: 5661 URL: http://svn.gna.org/viewcvs/warzone?rev=5661view=rev Log: * Add a new function strresGetStringByID which combines the functionality of strresGetIDNum and strresGetString * Get rid of function strresGetIDNum with its

[Warzone-commits] r5663 - in /trunk: lib/framework/strres.c lib/framework/strres.h src/stats.c

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 23:12:43 2008 New Revision: 5663 URL: http://svn.gna.org/viewcvs/warzone?rev=5663view=rev Log: * Get rid of function strresGetIDString who's only purpose is to determine whether the given ID string has a string resource associated with it, and if so return a

[Warzone-commits] r5662 - in /trunk/lib/framework: strres.c strresly.h

2008-07-24 Thread Giel van Schijndel
Author: muggenhor Date: Thu Jul 24 23:12:39 2008 New Revision: 5662 URL: http://svn.gna.org/viewcvs/warzone?rev=5662view=rev Log: Make function strresStoreString const correct Modified: trunk/lib/framework/strres.c trunk/lib/framework/strresly.h