components/prboom/p_spec.c
/////////////////////////////
//
// Initialize the sectors where pushers are present
//
Initialize the sectors where pushers are present
Initialize the sectors where pushers are present
static void P_SpawnPushers(void)
    {
    int i;
    line_t *l = lines;
    register int s;
    mobj_t* thing;
    for (i = 0 ; i < numlines ; i++,l++)
        switch(l->special)
            {
          case 224: 
            for (s = -1; (s = P_FindSectorFromLineTag(l,s)) >= 0 ; )
                Add_Pusher(p_wind,l->dx,l->dy,NULL,s);
            break;
          case 225: 
            for (s = -1; (s = P_FindSectorFromLineTag(l,s)) >= 0 ; )
                Add_Pusher(p_current,l->dx,l->dy,NULL,s);
            break;
          case 226: 
            for (s = -1; (s = P_FindSectorFromLineTag(l,s)) >= 0 ; )
                {
                thing = P_GetPushThing(s);
                if (thing) 
                    Add_Pusher(p_push,l->dx,l->dy,thing,s);
                }
            break;
            }
    }
static void P_SpawnPushers ( void ) { int i ; line_t * l = lines ; register int s ; mobj_t * thing ; for ( i = 0 ; i < numlines ; i ++ , l ++ ) switch ( l -> special ) { case 224 : for ( s = -1 ; ( s = P_FindSectorFromLineTag ( l , s ) ) >= 0 ; ) Add_Pusher ( p_wind , l -> dx , l -> dy , NULL , s ) ; break ; case 225 : for ( s = -1 ; ( s = P_FindSectorFromLineTag ( l , s ) ) >= 0 ; ) Add_Pusher ( p_current , l -> dx , l -> dy , NULL , s ) ; break ; case 226 : for ( s = -1 ; ( s = P_FindSectorFromLineTag ( l , s ) ) >= 0 ; ) { thing = P_GetPushThing ( s ) ; if ( thing ) Add_Pusher ( p_push , l -> dx , l -> dy , thing , s ) ; } break ; } }
Initialize the sectors where pushers are present
Initialize the sectors where pushers are present
// wind // current // push/pull // No MT_P* means no effect