@MuadDib's Fix-security-cameras-with-single-view

This commit is contained in:
Simon 2023-03-05 08:52:35 +00:00
parent 9e00445947
commit 911d89557d
2 changed files with 2 additions and 2 deletions

View file

@ -786,7 +786,7 @@ void camera_use( gentity_t *self, gentity_t *other, gentity_t *activator )
} }
if ( next ) if ( next )
{//found another one {//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 {//make sure it's another camera
camera_use( next, other, activator ); camera_use( next, other, activator );
} }

View file

@ -577,7 +577,7 @@ void camera_use( gentity_t *self, gentity_t *other, gentity_t *activator )
} }
if ( next ) if ( next )
{//found another one {//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 {//make sure it's another camera
camera_use( next, other, activator ); camera_use( next, other, activator );
} }