The improvement for CE actions by digging or collecting elements not
triggering before the dig or collect action was completely finished
had a very nasty bug in that such CE events when triggered by snapping
that element (which also counts as digging or collecting) just did not
work. This bug is fixed by this change.
This fixes commit
ca2d6507.
if (level.finish_dig_collect)
{
int dig_side = MV_DIR_OPPOSITE(direction);
+ int change_event = (IS_DIGGABLE(element) ? CE_PLAYER_DIGS_X :
+ CE_PLAYER_COLLECTS_X);
+ CheckTriggeredElementChangeByPlayer(x, y, element, change_event,
+ player_index_bit, dig_side);
CheckTriggeredElementChangeByPlayer(x, y, element, CE_PLAYER_SNAPS_X,
player_index_bit, dig_side);
}