# HG changeset patch # User nemo # Date 1511470949 18000 # Node ID f72c6f64c94cc9a2afab6dde45d4c1dee8a2cb4a # Parent afd312fc270d2f05941b97fa071df539e8aacf4c hate SDL blit... diff -r afd312fc270d -r f72c6f64c94c hedgewars/uLandObjects.pas --- a/hedgewars/uLandObjects.pas Wed Nov 22 17:38:47 2017 -0500 +++ b/hedgewars/uLandObjects.pas Thu Nov 23 16:02:29 2017 -0500 @@ -35,7 +35,7 @@ implementation uses uStore, uConsts, uConsole, uRandom, uSound , uTypes, uVariables, uDebug, uUtils - , uPhysFSLayer, adler32; + , uPhysFSLayer, adler32, uRenderUtils; const MaxRects = 512; MAXOBJECTRECTS = 16; @@ -472,15 +472,10 @@ inc(x, getrandom(12) + 12) until x >= LAND_WIDTH - Width; bRes:= cnt <> 0; -AddFileLog('CHECKPOINT 004'); if bRes then begin i:= getrandom(cnt); - r.x:= ar[i].X; - r.y:= ar[i].Y; - r.w:= Width; - r.h:= Height; - SDL_UpperBlit(Obj.Surf, nil, Surface, @r); + copyToXY(Obj.Surf, Surface, ar[i].X, ar[i].Y); AddRect(ar[i].x - 32, ar[i].y - 32, Width + 64, Height + 64); dec(Maxcnt) end