openclonk/planet/Objects.ocd/System.ocg/InflameLandscape.c

14 lines
353 B
C

/**
Engine callback handling for landscape inflammation
*/
/**
Callback from engine when landsape is incinerated at an incindiary material
*/
global func InflameLandscape(int x, int y, int cause_player)
{
// Not too many flames
if (!FindObject(Find_InRect(x-4, y-1, 8, 20), Find_ID(Flame)))
return CreateObjectAbove(Flame, x, y, cause_player);
}