summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-19 22:56:55 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-19 22:56:55 (GMT)
commite7f2eb92c5fee36e702011c350e5f0fc61afefbc (patch)
treee3d2009ff63d1249e922030ddd7da8c6cbd6b0d6 /src
parentb25a6ecd5935950322b583081889e2cc8281ea82 (diff)
downloadpowder-e7f2eb92c5fee36e702011c350e5f0fc61afefbc.zip
powder-e7f2eb92c5fee36e702011c350e5f0fc61afefbc.tar.gz
ctrl-'=' will reset sparks
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 041307e..96ecea3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1539,6 +1539,16 @@ int main(int argc, char *argv[])
if(sdl_key=='=')
{
int nx, ny;
+ if(sdl_mod & (KMOD_CTRL))
+ {
+ for(i=0;i<NPART;i++)
+ if(parts[i].type==PT_SPRK)
+ {
+ parts[i].type = parts[i].ctype;
+ parts[i].life = 0;
+ }
+ }
+ else
for(nx = 0;nx<XRES/CELL;nx++)
for(ny = 0;ny<YRES/CELL;ny++)
{