hedgewars/uLandObjects.pas
changeset 3083 8da8f2515221
parent 3057 e6e4c109ceb8
child 3165 3ec07a7d8456
equal deleted inserted replaced
3082:36586b751d64 3083:8da8f2515221
   351 
   351 
   352 procedure ReadThemeInfo(var ThemeObjects: TThemeObjects; var SprayObjects: TSprayObjects);
   352 procedure ReadThemeInfo(var ThemeObjects: TThemeObjects; var SprayObjects: TSprayObjects);
   353 var s: shortstring;
   353 var s: shortstring;
   354     f: textfile;
   354     f: textfile;
   355     i, ii: LongInt;
   355     i, ii: LongInt;
   356     vobcount: Longword;
       
   357     c1, c2: TSDL_Color;
   356     c1, c2: TSDL_Color;
   358 
   357 
   359     procedure CheckRect(Width, Height, x, y, w, h: LongWord);
   358     procedure CheckRect(Width, Height, x, y, w, h: LongWord);
   360     begin
   359     begin
   361     if (x + w > Width) then OutError('Object''s rectangle exceeds image: x + w (' + inttostr(x) + ' + ' + inttostr(w) + ') > Width (' + inttostr(Width) + ')', true);
   360     if (x + w > Width) then OutError('Object''s rectangle exceeds image: x + w (' + inttostr(x) + ' + ' + inttostr(w) + ') > Width (' + inttostr(Width) + ')', true);