diff options
| author | Simon <simon@hardwired.org.uk> | 2010-11-22 19:48:37 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-11-22 19:48:37 (GMT) |
| commit | b45d028585773c3295cda339ae01fae57e9ce87f (patch) | |
| tree | 11e56b65283b0bb7ae95251c4a1abac680facd4a /src | |
| parent | 887d4104404bc886d703241f49f1f79c6f196ffc (diff) | |
| download | powder-b45d028585773c3295cda339ae01fae57e9ce87f.zip powder-b45d028585773c3295cda339ae01fae57e9ce87f.tar.gz | |
Concrete fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index ee7e268..d040cf8 100644 --- a/src/powder.c +++ b/src/powder.c @@ -180,6 +180,8 @@ int try_move(int i, int x, int y, int nx, int ny) return 0; } + if((pmap[ny][nx]&0xFF)==PT_CNCT) + return 0; if(parts[i].type==PT_CNCT && y<ny && (pmap[y+1][x]&0xFF)==PT_CNCT) return 0; |
