Skip to content

Commit c0ef9f4

Browse files
committed
Remove nonsensical guiGetScreenSize
1 parent fa15f37 commit c0ef9f4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaGUIDefs.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ void CLuaGUIDefs::AddGuiElementClass(lua_State* luaVM)
281281
lua_classvariable(luaVM, "text", "guiSetText", "guiGetText");
282282
lua_classvariable(luaVM, "size", "guiSetSize", "guiGetSize");
283283
lua_classvariable(luaVM, "position", "guiSetPosition", "guiGetPosition");
284-
lua_classvariable(luaVM, "screenSize", NULL, "guiGetScreenSize");
285284
// lua_classvariable ( luaVM, "property" "guiSetProperty", "guiGetProperty" ); todo: .property[name] = value
286285

287286
lua_registerclass(luaVM, "GuiElement", "Element");
@@ -804,7 +803,7 @@ int CLuaGUIDefs::GUICreateStaticImage(lua_State* luaVM)
804803
else
805804
argStream.SetCustomError(path, "Failed to create static image");
806805
}
807-
else
806+
else
808807
argStream.SetCustomError(path, "File not found");
809808
}
810809
else
@@ -3195,7 +3194,7 @@ int CLuaGUIDefs::GUIEditIsMasked(lua_State* luaVM)
31953194

31963195
CScriptArgReader argStream(luaVM);
31973196
argStream.ReadUserData<CGUIEdit>(theElement);
3198-
3197+
31993198
if (!argStream.HasErrors())
32003199
{
32013200
bool masked = static_cast<CGUIEdit*>(theElement->GetCGUIElement())->IsMasked();
@@ -3477,7 +3476,7 @@ int CLuaGUIDefs::GUIWindowIsSizable(lua_State* luaVM)
34773476
}
34783477
else
34793478
m_pScriptDebugging->LogCustom(luaVM, argStream.GetFullErrorMessage());
3480-
3479+
34813480
// error: bad arguments
34823481
lua_pushnil(luaVM);
34833482
return 1;
@@ -3733,7 +3732,7 @@ int CLuaGUIDefs::GUIGetChatboxLayout(lua_State* luaVM)
37333732
else
37343733
lua_pushnumber(luaVM, fNumber);
37353734
}
3736-
3735+
37373736
// If we are asking for all CVars, push this into the table with its CVar name, otherwise just stop here
37383737
if (bAll)
37393738
lua_setfield(luaVM, -2, g_chatboxLayoutCVars[i]);

0 commit comments

Comments
 (0)