hedgewars/tunsetborder.inc
author unc0rr
Mon, 07 May 2007 20:21:26 +0000
changeset 509 fd58135a4407
parent 393 db01cc79f278
child 768 2886dafa5bcf
permissions -rw-r--r--
Bots know shotgun behavior better
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
db01cc79f278 Update copyright information
unc0rr
parents: 358
diff changeset
     3
 * Copyright (c) 2006-2007 Andrey Korotaev <unC0Rr@gmail.com>
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
236bbd12d4d9 - New Land Generator
unc0rr
parents: 351
diff changeset
    26
           (Land[ty, tx] = $FFFFFF) then SetLandPixel(ty, tx)
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 184
diff changeset
    27
	end;