update.c.patch
./rom24mp/update.c.patch · 535 B
From the archive MobProgs2_4.tar.gz
Download the archive « Back to the archive contents
406a407,427
> /*
> * Check triggers only if mobile still in default position
> */
> if ( ch->position == ch->pIndexData->default_pos )
> {
> /* Delay */
> if ( HAS_TRIGGER( ch, TRIG_DELAY)
> && ch->mprog_delay > 0 )
> {
> if ( --ch->mprog_delay <= 0 )
> {
> mp_percent_trigger( ch, NULL, NULL, NULL, TRIG_DELAY );
> continue;
> }
> }
> if ( HAS_TRIGGER( ch, TRIG_RANDOM) )
> {
> if( mp_percent_trigger( ch, NULL, NULL, NULL, TRIG_RANDOM ) )
> continue;
> }
> }