hedgewars/tunsetborder.inc
author unc0rr
Sun, 25 May 2008 18:09:21 +0000
changeset 950 feb18ec0c5c2
parent 768 2886dafa5bcf
child 1066 1f1b3686a2b0
permissions -rw-r--r--
Add nickname to message in more appropriate place
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
393
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     1
(*
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     2
 * Hedgewars, a worms-like 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);
358
236bbd12d4d9 - New Land Generator
unc0rr
parents: 351
diff changeset
    24
        if ((ty and $FFFFFC00) = 0) and
236bbd12d4d9 - New Land Generator
unc0rr
parents: 351
diff changeset
    25
           ((tx and $FFFFF800) = 0) and
768
2886dafa5bcf Store Land surface in memory:
unc0rr
parents: 393
diff changeset
    26
           (Land[ty, tx] = $FFFFFF) then LandPixels[ty, tx]:= cExplosionBorderColor
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 184
diff changeset
    27
	end;