mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-10 06:42:17 +00:00
@MuadDib's Fix-security-cameras-with-single-view
This commit is contained in:
parent
9e00445947
commit
911d89557d
2 changed files with 2 additions and 2 deletions
|
@ -786,7 +786,7 @@ void camera_use( gentity_t *self, gentity_t *other, gentity_t *activator )
|
|||
}
|
||||
if ( next )
|
||||
{//found another one
|
||||
if ( !Q_stricmp( "misc_camera", next->classname ) )
|
||||
if ( !Q_stricmp( "misc_camera", next->classname ) && next != self )
|
||||
{//make sure it's another camera
|
||||
camera_use( next, other, activator );
|
||||
}
|
||||
|
|
|
@ -577,7 +577,7 @@ void camera_use( gentity_t *self, gentity_t *other, gentity_t *activator )
|
|||
}
|
||||
if ( next )
|
||||
{//found another one
|
||||
if ( !Q_stricmp( "misc_camera", next->classname ) )
|
||||
if ( !Q_stricmp( "misc_camera", next->classname ) && next != self )
|
||||
{//make sure it's another camera
|
||||
camera_use( next, other, activator );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue