Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8395 in orxonox.OLD for branches/script_engine/src/world_entities


Ignore:
Timestamp:
Jun 14, 2006, 4:26:38 PM (19 years ago)
Author:
snellen
Message:

changed order of returnvalues of the get… functions in script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/script_engine/src/world_entities/script_trigger.cc

    r8391 r8395  
    160160   script->executeFunction();
    161161
    162    float retf = script->getReturnedFloat();
    163    printf("main returned %f\n",retf);
    164 
     162   int ret = script->getReturnedInt();
     163   printf("main returned %i\n",ret);
    165164
    166165   if(script->getReturnedBool())
     
    169168     printf("main returned false\n");
    170169
    171    int ret = script->getReturnedInt();
    172    printf("main returned %i\n",ret);
     170   float retf = script->getReturnedFloat();
     171   printf("main returned %f\n",retf);
     172   
    173173
    174174   printf("-------------------------- top of the stack:%i\n",lua_gettop(script->getLuaState()));
Note: See TracChangeset for help on using the changeset viewer.