mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Removed "touch" unregistration
This commit is contained in:
parent
6731f56aea
commit
f9901787b5
1 changed files with 2 additions and 15 deletions
|
@ -190,16 +190,11 @@ void G_Impact
|
|||
trace_t *trace
|
||||
)
|
||||
{
|
||||
gentity_t *e2;
|
||||
Event *ev;
|
||||
SafePtr< Entity > safe1;
|
||||
SafePtr< Entity > safe2;
|
||||
gentity_t *e2;
|
||||
Event *ev;
|
||||
|
||||
e2 = trace->ent;
|
||||
|
||||
safe1 = e1;
|
||||
safe2 = e2->entity;
|
||||
|
||||
level.impact_trace = *trace;
|
||||
|
||||
// touch anything, including the world
|
||||
|
@ -208,10 +203,6 @@ void G_Impact
|
|||
ev = new Event( EV_Touch );
|
||||
ev->AddEntity( e2->entity );
|
||||
e1->ProcessEvent( ev );
|
||||
|
||||
if( safe1 ) {
|
||||
safe1->Unregister( "touch" );
|
||||
}
|
||||
}
|
||||
|
||||
// entity could have been removed, so check if he's in use before sending the event
|
||||
|
@ -225,10 +216,6 @@ void G_Impact
|
|||
ev = new Event( EV_Touch );
|
||||
ev->AddEntity( e1 );
|
||||
e2->entity->ProcessEvent( ev );
|
||||
|
||||
if( safe2 ) {
|
||||
safe2->Unregister( "touch" );
|
||||
}
|
||||
}
|
||||
|
||||
memset( &level.impact_trace, 0, sizeof( level.impact_trace ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue