--- a/hedgewars/uStore.pas Mon Apr 13 12:53:52 2009 +0000
+++ b/hedgewars/uStore.pas Mon Apr 13 12:59:48 2009 +0000
@@ -18,7 +18,7 @@
unit uStore;
interface
-uses uConsts, uTeams, SDLh,
+uses uConsts, uTeams, SDLh,
{$IFDEF IPHONE}
gles11,
{$ELSE}
@@ -655,6 +655,7 @@
var w, h: LongInt;
Result: PSDL_Surface;
begin
+if length(s) = 0 then s:= ' ';
TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(s), w, h);
Result:= SDL_CreateRGBSurface(SDL_SWSURFACE, w + FontBorder * 2 + 4, h + FontBorder * 2,
--- a/share/hedgewars/Data/Trainings/001_Shotgun.txt Mon Apr 13 12:53:52 2009 +0000
+++ b/share/hedgewars/Data/Trainings/001_Shotgun.txt Mon Apr 13 12:59:48 2009 +0000
@@ -6,7 +6,7 @@
$delay 0
map mushrooms
theme nature
-ammstore 0000900000000000000000000000000
+ammstore 000090000000000000000000000000000000
hhcoords 1310 230
addtrig s2147483649 1 1 31 1150 300 1
addtrig s1 1 1 31 1310 890 2