File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ int CLuaBlipDefs::CreateBlip(lua_State* luaVM)
80
80
argStream.SetCustomError (" Invalid icon" );
81
81
}
82
82
83
+ if (iSize < 0 || iSize > 25 )
84
+ argStream.SetCustomWarning (SString (" Blip size beyond 25 is no longer supported (got %i). It will be clamped between 0 and 25." , iSize));
85
+
83
86
if (!argStream.HasErrors ())
84
87
{
85
88
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine (luaVM);
@@ -141,6 +144,9 @@ int CLuaBlipDefs::CreateBlipAttachedTo(lua_State* luaVM)
141
144
argStream.SetCustomError (" Invalid icon" );
142
145
}
143
146
147
+ if (iSize < 0 || iSize > 25 )
148
+ argStream.SetCustomWarning (SString (" Blip size beyond 25 is no longer supported (got %i). It will be clamped between 0 and 25." , iSize));
149
+
144
150
if (!argStream.HasErrors ())
145
151
{
146
152
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine (luaVM);
@@ -310,6 +316,9 @@ int CLuaBlipDefs::SetBlipSize(lua_State* luaVM)
310
316
argStream.ReadUserData (pEntity);
311
317
argStream.ReadNumber (iSize);
312
318
319
+ if (iSize < 0 || iSize > 25 )
320
+ argStream.SetCustomWarning (SString (" Blip size beyond 25 is no longer supported (got %i). It will be clamped between 0 and 25." , iSize));
321
+
313
322
if (!argStream.HasErrors ())
314
323
{
315
324
unsigned char ucSize = Clamp (0 , iSize, 25 );
You can’t perform that action at this time.
0 commit comments