~ubuntu-branches/ubuntu/trusty/hedgewars/trusty-proposed

« back to all changes in this revision

Viewing changes to hedgewars/VGSHandlers.inc

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-11-20 18:31:17 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20111120183117-pjhz1n2pvnmxa246
Tags: 0.9.17-1
* [Paul Wise]
 * Mention the homing bee in the package description (Closes: #577092)
 * Also install the hwengine desktop file (LP: #811770)
 * Depend on ttf-dejavu-core since it is smaller
 * Depend on ttf-wqy-zenhei instead of embedding a copy of it
* [Dmitry E. Oboukhov]
 * New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        if round(X) < cLeftScreenBorder then X:= X + cScreenSpace else
80
80
        if round(X) > cRightScreenBorder then X:= X - cScreenSpace;
81
81
        // if round(Y) < (LAND_HEIGHT - 1024 - 75) then Y:= Y + 25.0; // For if flag is set for flakes rising upwards?
82
 
        if round(Y) - 75 > LAND_HEIGHT then Y:= Y - (1024 + 150); // TODO - configure in theme (jellies for example could use limited range)
 
82
        if (Gear^.Layer = 2) and (round(Y) - 225 > LAND_HEIGHT) then Y:= Y - (1024 + 300) // TODO - configure in theme (jellies for example could use limited range)
 
83
        else if (Gear^.Layer <> 2) and (round(Y) + 50 > LAND_HEIGHT) then Y:= Y - (1024 + 25);
83
84
        Timer:= 0;
84
85
        tdX:= 0;
85
86
        tdY:= 0
172
173
Gear^.Angle:= round(Gear^.Angle + Steps) mod cMaxAngle;
173
174
 
174
175
if Gear^.FrameTicks <= Steps then
175
 
    DeleteVisualGear(Gear)
 
176
    begin
 
177
    DeleteVisualGear(Gear);
 
178
    exit
 
179
    end
176
180
else
177
181
    dec(Gear^.FrameTicks, Steps);
178
182