summaryrefslogtreecommitdiff
path: root/src/elements/nwhl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/nwhl.c')
-rw-r--r--src/elements/nwhl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/nwhl.c b/src/elements/nwhl.c
index 8515542..674ede3 100644
--- a/src/elements/nwhl.c
+++ b/src/elements/nwhl.c
@@ -1,6 +1,6 @@
#include <element.h>
int update_NWHL(UPDATE_FUNC_ARGS) {
- gravmap[y/CELL][x/CELL] -= 0.1f;
+ gravmap[(y/CELL)*(XRES/CELL)+(x/CELL)] -= 0.1f;
return 0;
}