Пример #1
0
 void run()
 {
     if(type == ACTION) { if(val.s) execute(val.s); }
     else if(id) switch(id->type)
     {
         case ID_VAR: setvarchecked(id, getint()); break;
         case ID_FVAR: setfvarchecked(id, getfloat()); break;
         case ID_SVAR: setsvarchecked(id, getstring()); break;
         case ID_ALIAS: alias(id->name, getstring()); break;
     }
 }
Пример #2
0
 void run()
 {
     int _oldflags = identflags;
     if(world) identflags |= IDF_WORLD;
     if(type == ACTION) { if(val.s) execute(val.s); }
     else if(id) switch(id->type)
     {
         case ID_VAR: setvarchecked(id, getint()); break;
         case ID_FVAR: setfvarchecked(id, getfloat()); break;
         case ID_SVAR: setsvarchecked(id, getstring()); break;
         case ID_ALIAS: alias(id->name, getstring()); break;
     }
     identflags = _oldflags;
 }