diff options
Diffstat (limited to 'src/elements/gbmb.c')
| -rw-r--r-- | src/elements/gbmb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/gbmb.c b/src/elements/gbmb.c index d606312..c31f323 100644 --- a/src/elements/gbmb.c +++ b/src/elements/gbmb.c @@ -19,8 +19,8 @@ int update_GBMB(UPDATE_FUNC_ARGS) { } } if(parts[i].life>20) - gravmap[y/CELL][x/CELL] = 20; + gravmap[(y/CELL)*(XRES/CELL)+(x/CELL)] = 20; if(parts[i].life<20 && parts[i].life>=1) - gravmap[y/CELL][x/CELL] = -80; + gravmap[(y/CELL)*(XRES/CELL)+(x/CELL)] = -80; return 0; } |
