1 2 3 4 5 6
#include <element.h> int update_NBHL(UPDATE_FUNC_ARGS) { gravmap[(y/CELL)*(XRES/CELL)+(x/CELL)] += 0.1f; return 0; }