diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-01-09 21:16:59 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-01-09 21:16:59 (GMT) |
| commit | d6837437f2eff9a2d020638646ba874a33580227 (patch) | |
| tree | 99334ba913bcfe27b4d3dfb0bbdb36cdf3589bdf /src | |
| parent | 6b06d37ca5adb5ce43642dad0df757921388c181 (diff) | |
| download | powder-d6837437f2eff9a2d020638646ba874a33580227.zip powder-d6837437f2eff9a2d020638646ba874a33580227.tar.gz | |
fix c-5 floodfill
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/powder.c b/src/powder.c index 0b43739..440c0c2 100644 --- a/src/powder.c +++ b/src/powder.c @@ -5881,13 +5881,13 @@ void create_box(int x1, int y1, int x2, int y2, int c) int flood_parts(int x, int y, int c, int cm, int bm) { int x1, x2, dy = (c<PT_NUM)?1:CELL; - int co = c; + int co = c, wall; if(cm==PT_INST&&co==PT_SPRK) if((pmap[y][x]&0xFF)==PT_SPRK) return 0; if(c>=UI_WALLSTART&&c<=UI_WALLSTART+UI_WALLCOUNT) { - c = c-100; + wall = c-100; } if(cm==-1) { @@ -5904,7 +5904,7 @@ int flood_parts(int x, int y, int c, int cm, int bm) } if(bm==-1) { - if(c==WL_ERASE) + if(wall==WL_ERASE) { bm = bmap[y/CELL][x/CELL]; if(!bm) |
