Beispiel #1
0
//
// EV_IsParamStaticInit
//
// Test if a given line special is bound to a parameterized static init
// function. There are only a handful of these, so they are hard-coded
// here rather than being tablified.
//
// ioanch WARNING: do not put formerly classic specials here, if they've become
// parameterized in the mean time. This may break maps.
//
bool EV_IsParamStaticInit(int special)
{
   switch(EV_StaticInitForSpecial(special))
   {
   case EV_STATIC_3DMIDTEX_ATTACH_PARAM:
   case EV_STATIC_CURRENT_CONTROL_PARAM:
   case EV_STATIC_INIT_PARAM:
   case EV_STATIC_PORTAL_LINE_PARAM:
   case EV_STATIC_SCROLL_WALL_PARAM:
   case EV_STATIC_SLOPE_PARAM:
   case EV_STATIC_POLYOBJ_START_LINE:
   case EV_STATIC_POLYOBJ_EXPLICIT_LINE:
   case EV_STATIC_PUSHPULL_CONTROL_PARAM:
   case EV_STATIC_SCROLL_CEILING_PARAM:
   case EV_STATIC_SCROLL_FLOOR_PARAM:
   case EV_STATIC_SCROLL_LEFT_PARAM:
   case EV_STATIC_SCROLL_RIGHT_PARAM:
   case EV_STATIC_SCROLL_UP_PARAM:
   case EV_STATIC_SCROLL_DOWN_PARAM:
   case EV_STATIC_PORTAL_SECTOR_PARAM:
   case EV_STATIC_LINE_SET_IDENTIFICATION:
   case EV_STATIC_WIND_CONTROL_PARAM:
      return true;
   default:
      return false;
   }
}
Beispiel #2
0
//
// EV_IsParamStaticInit
//
// Test if a given line special is bound to a parameterized static init
// function. There are only a handful of these, so they are hard-coded
// here rather than being tablified.
//
bool EV_IsParamStaticInit(int special)
{
   switch(EV_StaticInitForSpecial(special))
   {
   case EV_STATIC_POLYOBJ_START_LINE:
   case EV_STATIC_POLYOBJ_EXPLICIT_LINE:
   case EV_STATIC_SCROLL_LEFT_PARAM:
   case EV_STATIC_SCROLL_RIGHT_PARAM:
   case EV_STATIC_SCROLL_UP_PARAM:
   case EV_STATIC_SCROLL_DOWN_PARAM:
   case EV_STATIC_LINE_SET_IDENTIFICATION:
      return true;
   default:
      return false;
   }
}