hedgewars/tunsetborder.inc
author unc0rr
Thu, 20 Jul 2006 20:11:32 +0000
changeset 80 3c3dc6a148ca
parent 53 0e27949850e3
child 101 f568cc72ea8c
permissions -rw-r--r--
- Fixed bug with hedgehog under water using rope - Add locale support in engine - Bots use ljump and hjump - Fix shotgun rating - Support for theme-dependent sprites - Horizon and sky can have any image size - Many small fixes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
38
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     1
        begin
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     2
        X:= X + dX;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     3
        Y:= Y + dY;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     4
        tx:= round(X);
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     5
        ty:= round(Y);
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 38
diff changeset
     6
        if ((ty and $FFFFFC00) = 0) and ((tx and $FFFFF800) = 0)and (Land[ty, tx] = $FFFFFF) then
38
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     7
        case LandSurface.format.BytesPerPixel of
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     8
             1: ;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
     9
             2: PWord(p + LandSurface.pitch * ty + tx * 2)^:= cExplosionBorderColor;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    10
             3: begin
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    11
                PByte(p + LandSurface.pitch * ty + tx * 3 + 0)^:= cExplosionBorderColor and $FF;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    12
                PByte(p + LandSurface.pitch * ty + tx * 3 + 1)^:= (cExplosionBorderColor shr 8) and $FF;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    13
                PByte(p + LandSurface.pitch * ty + tx * 3 + 2)^:= (cExplosionBorderColor shr 16);
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    14
                end;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    15
             4: PLongword(p + LandSurface.pitch * ty + tx * 4)^:= cExplosionBorderColor;
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    16
             end
c1ec4b15d70e Better Desert Eagle and Shotgun
unc0rr
parents:
diff changeset
    17
	end;