mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-11 10:54:15 +02:00
Fix tnt/prop crash, it was using up all the memory on the computer
This commit is contained in:
@@ -2730,6 +2730,7 @@ int flood_prop(int x, int y, size_t propoffset, void * propvalue, int proptype)
|
|||||||
memset(bitmap, 0, XRES*YRES);
|
memset(bitmap, 0, XRES*YRES);
|
||||||
r = pmap[y][x];
|
r = pmap[y][x];
|
||||||
flood_prop_2(x, y, propoffset, propvalue, proptype, r&0xFF, bitmap);
|
flood_prop_2(x, y, propoffset, propvalue, proptype, r&0xFF, bitmap);
|
||||||
|
free(bitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
int flood_parts(int x, int y, int fullc, int cm, int bm, int flags)
|
int flood_parts(int x, int y, int fullc, int cm, int bm, int flags)
|
||||||
|
Reference in New Issue
Block a user