diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-03-16 11:39:31 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-03-16 11:39:31 (GMT) |
| commit | 02084109524239a2b57b5eb8d699bd6c1fbe1597 (patch) | |
| tree | c11956cb07961206867830a848c8ebf8b6bb15ee /src | |
| parent | 3b7cf2475743d6753c89e46c1ed762a7f487cc3c (diff) | |
| download | powder-02084109524239a2b57b5eb8d699bd6c1fbe1597.zip powder-02084109524239a2b57b5eb8d699bd6c1fbe1597.tar.gz | |
flood_parts uninitialised variable
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/powder.c b/src/powder.c index dbbfe0c..a53dc04 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2728,14 +2728,10 @@ 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, wall; + int co = c; 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) - { - wall = c-100; - } if (cm==-1) { if (c==0) @@ -2751,7 +2747,7 @@ int flood_parts(int x, int y, int c, int cm, int bm) } if (bm==-1) { - if (wall==WL_ERASE) + if (c-UI_WALLSTART+UI_ACTUALSTART==WL_ERASE) { bm = bmap[y/CELL][x/CELL]; if (!bm) |
