- Added a missing "shipCollided" event handler to the docking tunnel.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3806 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
f81cfc21ae
commit
a800373105
@ -945,6 +945,8 @@ static NSDictionary* instructions(int station_id, Vector coords, float speed, fl
|
||||
|
||||
// damage the ship according to velocity but don't collide
|
||||
[ship takeScrapeDamage: 5 * [UNIVERSE getTimeDelta]*[ship flightSpeed] from:self];
|
||||
[self doScriptEvent:@"shipCollided" withArgument:ship andReactToAIMessage:@"COLLISION"];
|
||||
[ship doScriptEvent:@"shipCollided" withArgument:self andReactToAIMessage:@"COLLISION"];
|
||||
|
||||
Vector delta;
|
||||
delta.x = 0.5 * (arbb.max.x + arbb.min.x) * correction_factor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user