We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da94baf commit 0c6c6cbCopy full SHA for 0c6c6cb
MTA10/mods/shared_logic/lua/CLuaFunctionDefs.Camera.cpp
@@ -177,7 +177,7 @@ int CLuaFunctionDefs::SetCameraFieldOfView ( lua_State* luaVM )
177
{
178
while (true) {
179
if ( fFOV < 0 || fFOV > 179 ) {
180
- argStream.SetCustomError ( "FOV is outside the 0-179 boundary" );
+ argStream.SetCustomError ( "Invalid FOV range (0-179)" );
181
break;
182
}
183
@@ -231,6 +231,7 @@ int CLuaFunctionDefs::GetCameraFieldOfView ( lua_State* luaVM )
231
return 1;
232
233
234
+ m_pScriptDebugging->LogCustom ( luaVM, argStream.GetFullErrorMessage () );
235
lua_pushboolean ( luaVM, false );
236
237
0 commit comments