# HG changeset patch # User Wuzzy # Date 1491450885 -7200 # Node ID 666e18b1ca32bdb83f844597839f3a779ca305cb # Parent 1ce6ee2525db8f74f2cbcbcddc8a82f85397ed32 Allow to place theme objects on water diff -r 1ce6ee2525db -r 666e18b1ca32 ChangeLog.txt --- a/ChangeLog.txt Wed Apr 05 18:23:10 2017 +0200 +++ b/ChangeLog.txt Thu Apr 06 05:54:45 2017 +0200 @@ -188,6 +188,7 @@ Content Creation: + Theme objects can now have more than 1 in-land rect specified. You can specify the amount in theme.cfg by adding another number (and ,) before the first rect + + Theme objects can now be placed on water (by setting first in-land rectangle to 0,0,0,0) + Themes can now use flakes with negative falling speed (rising flakes) + Themes can now contain custom sound files: splash.ogg Droplet1.ogg Droplet2.ogg Droplet3.ogg skip.ogg + Themes can now have mirrored clouds and flakes: CloudsL.png, SDCloudsL.png, FlakeL.png, SDFlakeL.png diff -r 1ce6ee2525db -r 666e18b1ca32 hedgewars/uLandObjects.pas --- a/hedgewars/uLandObjects.pas Wed Apr 05 18:23:10 2017 +0200 +++ b/hedgewars/uLandObjects.pas Thu Apr 06 05:54:45 2017 +0200 @@ -396,6 +396,10 @@ repeat y:= topY+32; // leave room for a hedgie to teleport in repeat + + if (inland[1].x = 0) and (inland[1].y = 0) and (inland[1].w = 0) and (inland[1].h = 0) then + y := LAND_HEIGHT - Height; + if CheckCanPlace(x, y, Obj) then begin ar[cnt].x:= x;