hedgewars/tunsetborder.inc
author unc0rr
Sun, 22 Mar 2009 21:44:48 +0000
changeset 1913 73d2da2df3c2
parent 1792 c30c6944bd49
child 2602 3deb9ff104da
permissions -rw-r--r--
Don't draw walking state when cursor is on
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
393
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     1
(*
1066
1f1b3686a2b0 Update copyright headers a bit
unc0rr
parents: 768
diff changeset
     2
 * Hedgewars, a free turn based strategy game
768
2886dafa5bcf Store Land surface in memory:
unc0rr
parents: 393
diff changeset
     3
 * Copyright (c) 2006-2008 Andrey Korotaev <unC0Rr@gmail.com>
393
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     4
 *
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     8
 *
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    12
 * GNU General Public License for more details.
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    13
 *
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    14
 * You should have received a copy of the GNU General Public License
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    15
 * along with this program; if not, write to the Free Software
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    17
 *)
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
    18
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 101
diff changeset
    19
        begin
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 101
diff changeset
    20
        X:= X + dX;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 101
diff changeset
    21
        Y:= Y + dY;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 184
diff changeset
    22
        tx:= hwRound(X);
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 184
diff changeset
    23
        ty:= hwRound(Y);
1778
1d9395d1e104 Fix border drawing when drilling
unc0rr
parents: 1066
diff changeset
    24
        if ((ty and LAND_HEIGHT_MASK) = 0) and
1d9395d1e104 Fix border drawing when drilling
unc0rr
parents: 1066
diff changeset
    25
           ((tx and LAND_WIDTH_MASK) = 0) and
1792
c30c6944bd49 engine part of nemo's patch
unc0rr
parents: 1778
diff changeset
    26
           (Land[ty, tx] = COLOR_LAND) then LandPixels[ty, tx]:= cExplosionBorderColor
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 184
diff changeset
    27
	end;