hedgewars/tunsetborder.inc
author unc0rr
Sun, 29 Nov 2009 16:56:04 +0000
changeset 2647 0e1208e92dfe
parent 2603 abed6070a669
permissions -rw-r--r--
Smaxx patch with tuning by me: - hogs might worry/panic if they're next to explosives (grenade, dynamite, etc.) - play sndVaporice for each fire extinguished only once (not 3 times) - allow "on attack" voices/sounds for weapons (similar to water melon bomb) - allow one voice/sound to be played during emotes - print protocol version in version info (console) - rope sounds (disabled atm) - landscape background - optimized/rewrote explosion drawing - fixed "StopSound" called with an inactive sound to stop some random sound - disabled npott
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;