Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8886 in orxonox.OLD


Ignore:
Timestamp:
Jun 28, 2006, 7:01:42 PM (18 years ago)
Author:
snellen
Message:

fixed bug that led to a segmentation fault while adding the scripttrigger to a nonexistent script

Location:
branches/single_player_map/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8876 r8886  
    9090
    9191      height = collPos.y - box->halfLength[1];
    92       PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
    93       PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
     92     // PRINTF(0)("height: %f          , model height: %f\n", height, box->halfLength[1]);
     93     // PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z);
    9494
    9595      // object is beneath the plane (ground)
  • branches/single_player_map/src/world_entities/door.cc

    r8883 r8886  
    7373
    7474
    75   this->loadMD2Texture("maps/doormtl_cmbo.jpg");
     75  this->loadMD2Texture("maps/doors.jpg");
    7676  this->loadModel("models/creatures/doors.md2", 1.0);
    7777  this->setAnimation(DOOR_CLOSE, MD2_ANIM_ONCE);
  • branches/single_player_map/src/world_entities/script_trigger.cc

    r8869 r8886  
    4646  scriptCalled = false;
    4747  scriptIsOk = false;
    48   triggerLasts = false;
     48  triggerLasts = true;
    4949  addToScript = false;
    5050 
     
    5454  loadParams(root);
    5555 
    56   if(addToScript)
     56  if(addToScript && scriptIsOk)
    5757  {
    5858    script->addObject( "ScriptTrigger", this->getName());
     
    104104    LoadParam(root, "invert", this, ScriptTrigger, setInvert)
    105105        .describe("")
    106         .defaultValues("");
     106        .defaultValues("false");
    107107    LoadParam(root, "triggerlasts", this, ScriptTrigger, setTriggerLasts)
    108108        .describe("")
    109         .defaultValues("");
     109        .defaultValues("true");
    110110    LoadParam(root, "debugdraw", this, ScriptTrigger, setDebugDraw)
    111111        .describe("")
    112         .defaultValues("");
     112        .defaultValues("false");
    113113    LoadParam(root, "addtoscript", this, ScriptTrigger, setAddToScript)
    114114        .describe("True if this scripttrigger should be aviable in the script")
    115         .defaultValues("");
     115        .defaultValues("false");
    116116}
    117117
Note: See TracChangeset for help on using the changeset viewer.