hedgewars/uLandGraphics.pas
changeset 10378 c2b976d6c4f1
parent 10374 c7ef47665410
child 10490 b30b8d39d662
equal deleted inserted replaced
10377:c6d8e7cd6e54 10378:c2b976d6c4f1
   622 TryPlaceOnLand:= TryPlaceOnLand(cpX, cpY, Obj, Frame, doPlace, false, false, LandFlags);
   622 TryPlaceOnLand:= TryPlaceOnLand(cpX, cpY, Obj, Frame, doPlace, false, false, LandFlags);
   623 end;
   623 end;
   624 
   624 
   625 function ForcePlaceOnLand(cpX, cpY: LongInt; Obj: TSprite; Frame: LongInt; LandFlags: Word): boolean; inline;
   625 function ForcePlaceOnLand(cpX, cpY: LongInt; Obj: TSprite; Frame: LongInt; LandFlags: Word): boolean; inline;
   626 begin
   626 begin
   627     ForcePlaceOnLand:= TryPlaceOnLand(cpX, cpY, Obj, Frame, true, true, true, LandFlags)
   627     ForcePlaceOnLand:= TryPlaceOnLand(cpX, cpY, Obj, Frame, true, false, true, LandFlags)
   628 end;
   628 end;
   629 
   629 
   630 function TryPlaceOnLand(cpX, cpY: LongInt; Obj: TSprite; Frame: LongInt; doPlace, outOfMap, force: boolean; LandFlags: Word): boolean;
   630 function TryPlaceOnLand(cpX, cpY: LongInt; Obj: TSprite; Frame: LongInt; doPlace, outOfMap, force: boolean; LandFlags: Word): boolean;
   631 var X, Y, bpp, h, w, row, col, gx, gy, numFramesFirstCol: LongInt;
   631 var X, Y, bpp, h, w, row, col, gx, gy, numFramesFirstCol: LongInt;
   632     p: PByteArray;
   632     p: PByteArray;