summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-05-11 20:29:35 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-05-14 12:43:51 (GMT)
commitcbfc73d8d60421c5d64a8cca0961c87bc33146d0 (patch)
tree6e6bd56693a9be3e65dd265aee09ee5ee82dda75 /src/main.c
parent26dbf70709bbbcfddc5563d2d263ea3e1a98b4ef (diff)
downloadpowder-cbfc73d8d60421c5d64a8cca0961c87bc33146d0.zip
powder-cbfc73d8d60421c5d64a8cca0961c87bc33146d0.tar.gz
Turn WIND into a tool
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index ca968d2..31e4932 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2746,7 +2746,7 @@ int main(int argc, char *argv[])
bmap[j][i] = WL_FAN;
}
}
- if (c == PT_WIND)
+ if (c == SPC_WIND)
{
for (j=-bsy; j<=bsy; j++)
for (i=-bsx; i<=bsx; i++)
@@ -2766,7 +2766,7 @@ int main(int argc, char *argv[])
}
else//while mouse is held down, it draws lines between previous and current positions
{
- if (c == PT_WIND)
+ if (c == SPC_WIND)
{
for (j=-bsy; j<=bsy; j++)
for (i=-bsx; i<=bsx; i++)
@@ -2807,7 +2807,7 @@ int main(int argc, char *argv[])
{
if (sdl_mod & (KMOD_CAPS))
c = 0;
- if (c!=WL_STREAM+100&&c!=SPC_AIR&&c!=SPC_HEAT&&c!=SPC_COOL&&c!=SPC_VACUUM&&!REPLACE_MODE&&c!=PT_WIND)
+ if (c!=WL_STREAM+100&&c!=SPC_AIR&&c!=SPC_HEAT&&c!=SPC_COOL&&c!=SPC_VACUUM&&!REPLACE_MODE&&c!=SPC_WIND)
flood_parts(x, y, c, -1, -1);
if (c==SPC_HEAT || c==SPC_COOL)
create_parts(x, y, bsx, bsy, c);