Revision: 1531
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1531&view=rev
Author: rorthomas
Date: 2010-08-23 11:03:41 +0000 (Mon, 23 Aug 2010)
Log Message:
-----------
truck box handlers working
Modified Paths:
--------------
trunk/source/main/Beam.cpp
trunk/source/main/ScriptEngine.cpp
Modified: trunk/source/main/Beam.cpp
===================================================================
--- trunk/source/main/Beam.cpp 2010-08-23 01:43:26 UTC (rev 1530)
+++ trunk/source/main/Beam.cpp 2010-08-23 11:03:41 UTC (rev 1531)
@@ -8075,7 +8075,7 @@
ground_model_t *gm = 0; // this is used as
result storage, so we can use it later on
int contacted =
collisions->groundCollision(&nodes[i], nodes[i].colltesttimer, &gm, &ns);
- int handlernum = 0;
+ int handlernum = -1;
//TODO is this supposed to be a binary
operator, or a logical operator?
if ( contacted |
collisions->nodeCollision(&nodes[i],
i==cinecameranodepos[currentcamera], contacted, nodes[i].colltesttimer, &ns,
&gm, &handlernum))
Modified: trunk/source/main/ScriptEngine.cpp
===================================================================
--- trunk/source/main/ScriptEngine.cpp 2010-08-23 01:43:26 UTC (rev 1530)
+++ trunk/source/main/ScriptEngine.cpp 2010-08-23 11:03:41 UTC (rev 1531)
@@ -616,7 +616,8 @@
}
}
- if(handlerid >= 0 && handlerid < MAX_EVENTSOURCE)
+ // if the truck is in there, call the functions
+ if(allwheels && handlerid >= 0 && handlerid <
MAX_EVENTSOURCE)
{
eventsource_t *source =
coll->getEvent(handlerid);
if(!engine) return 0;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel