You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
9 lines
276 B
Plaintext
9 lines
276 B
Plaintext
/// get_floor_material()
|
|
// leaks `bl_id`
|
|
bl_id = instance_position(x, y + 8, oSolid);
|
|
if (bl_id < 0) bl_id = instance_position(x + 6, y + 2, oSolid);
|
|
if (bl_id < 0) bl_id = instance_position(x - 6, y + 2, oSolid);
|
|
if (bl_id > 0) {
|
|
return bl_id.material;
|
|
} else return 0;
|