diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-01-19 22:56:55 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-01-19 22:56:55 (GMT) |
| commit | e7f2eb92c5fee36e702011c350e5f0fc61afefbc (patch) | |
| tree | e3d2009ff63d1249e922030ddd7da8c6cbd6b0d6 /src | |
| parent | b25a6ecd5935950322b583081889e2cc8281ea82 (diff) | |
| download | powder-e7f2eb92c5fee36e702011c350e5f0fc61afefbc.zip powder-e7f2eb92c5fee36e702011c350e5f0fc61afefbc.tar.gz | |
ctrl-'=' will reset sparks
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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++) { |
