hedgewars/tunsetborder.inc
author nemo
Tue, 08 Dec 2009 17:37:41 +0000
changeset 2656 f66f6d8e3297
parent 2647 0e1208e92dfe
permissions -rw-r--r--
revert 2695 until I figure out why the linguist update stripped the numerusforms.
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
2647
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    19
begin
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    20
X:= X + dX;
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    21
Y:= Y + dY;
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    22
tx:= hwRound(X);
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    23
ty:= hwRound(Y);
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    24
if ((ty and LAND_HEIGHT_MASK) = 0) and
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    25
    ((tx and LAND_WIDTH_MASK) = 0) and
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    26
    ((Land[ty, tx] = COLOR_LAND) or (Land[ty, tx] = COLOR_OBJECT)) then LandPixels[ty, tx]:= cExplosionBorderColor
0e1208e92dfe Smaxx patch with tuning by me:
unc0rr
parents: 2603
diff changeset
    27
end;