Limit gel tmp value
This commit is contained in:
parent
11bd67eb61
commit
1c5381662d
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
int update_GEL(UPDATE_FUNC_ARGS) {
|
int update_GEL(UPDATE_FUNC_ARGS) {
|
||||||
int r, rx, ry;
|
int r, rx, ry;
|
||||||
|
if (parts[i].tmp>100) parts[i].tmp = 100;
|
||||||
|
if (parts[i].tmp<0) parts[i].tmp = 0;
|
||||||
for (rx=-2; rx<3; rx++)
|
for (rx=-2; rx<3; rx++)
|
||||||
for (ry=-2; ry<3; ry++)
|
for (ry=-2; ry<3; ry++)
|
||||||
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
||||||
|
Loading…
Reference in New Issue
Block a user