mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-19 23:00:25 +02:00
Fixed sighttrace not properly passing entities
This fixes the issue where some scripts (like e2l3's BattleHouse) expect sighttrace to ignore entities (fixes #202)
This commit is contained in:
1 file changed
+2
-2
@@ -3778,7 +3778,7 @@ void ScriptThread::EventTrace(Event *ev)
|
||||
|
||||
void ScriptThread::EventSightTrace(Event *ev)
|
||||
{
|
||||
int content_mask = MASK_LINE;
|
||||
int content_mask = MASK_SOLID;
|
||||
Vector start;
|
||||
Vector mins;
|
||||
Vector maxs;
|
||||
@@ -3794,7 +3794,7 @@ void ScriptThread::EventSightTrace(Event *ev)
|
||||
mins = ev->GetVector(4);
|
||||
case 3:
|
||||
if (ev->GetInteger(3)) {
|
||||
content_mask = MASK_SOLID;
|
||||
content_mask &= ~MASK_IGNORE_ENTS;
|
||||
}
|
||||
case 2:
|
||||
end = ev->GetVector(2);
|
||||
|
||||
Reference in new issue
Block a user