if (file_exists_onepath(temp_str))
{
ENTITY* temp_ent = ent_create( NULL , nullvector , NULL);
temp_ent = ent_next(NULL); // get first entity
int counter_int = 0; // for progress bar
while (temp_ent) // repeat until there are no more entities
{
// terrains - assign only actions when they are unassigned - needed for terrain editing!
if (ent_type(temp_ent) == (var)4)
{
// printf("terrain founc : %s", _chr(str_for_entfile(NULL, temp_ent)));
if (is(temp_ent, PASSABLE))
{
wait(1);
// printf("Water found : %s", _chr(str_for_entfile(NULL, temp_ent)));
// if (proc_status(TerrHmp_WaterAction) == (var)0)
{
my = temp_ent; // must be set! MB.2.31 fix
TerrHmp_WaterAction();
}
}
else
{
wait(1);
// printf("Ground found : %s", _chr(str_for_entfile(NULL, temp_ent)));
// if (proc_status(TerrHmp_GroundAction) == (var)0)
{
my = temp_ent; // must be set! MB.2.31.fix
TerrHmp_GroundAction();
}
}
}