Author: esr
Date: Sun Oct 19 03:43:07 2008
New Revision: 30263
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30263&view=rev
Log:
trackplacer: ensure that spaces in track names won't mess up the
generated macros.
Modified:
trunk/data/tools/trackplacer
Modified: trunk/data/tools/trackplacer
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=30263&r1=30262&r2=30263&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Sun Oct 19 03:43:07 2008
@@ -160,8 +160,9 @@
endpoints = map(lambda (i, t): i, index_tuples)
if track[-1][0] not in segmenters:
endpoints.append(len(track)-1)
+ outname = name.replace(" ", "_").upper()
for (i, e) in enumerate(endpoints):
- fp.write("#define %s_STAGE%d\n" % (name, i+1,))
+ fp.write("#define %s_STAGE%d\n" % (outname, i+1,))
for j in range(0, e+1):
age="OLD"
if i == 0 or j > endpoints[i-1]:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits