[-] Removed obsolete CclSetMetaServer
[-] Fixed button popup line color
This commit is contained in:
parent
881a3dd830
commit
15c177ef90
4 changed files with 2 additions and 19 deletions
|
@ -77,8 +77,6 @@ private:
|
|||
----------------------------------------------------------------------------*/
|
||||
// Metaserver itself
|
||||
extern CMetaClient MetaClient;
|
||||
// Warning: deprecated function
|
||||
extern int CclSetMetaServer(lua_State *l);
|
||||
|
||||
//@}
|
||||
|
||||
|
|
|
@ -61,20 +61,6 @@ CMetaClient MetaClient;
|
|||
-- Functions
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
** Set the metaserver to use for internet play.
|
||||
**
|
||||
** @param l Lua state.
|
||||
** @warning Deprecated function, need to be removed soon
|
||||
*/
|
||||
int CclSetMetaServer(lua_State *l)
|
||||
{
|
||||
LuaCheckArgs(l, 2);
|
||||
MetaClient.SetMetaServer(LuaToString(l, 1), LuaToNumber(l, 2));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
** Set the metaserver to use for internet play.
|
||||
**
|
||||
|
|
|
@ -1881,7 +1881,6 @@ static int CclNoRandomPlacementMultiplayer(lua_State *l)
|
|||
void NetworkCclRegister()
|
||||
{
|
||||
lua_register(Lua, "NoRandomPlacementMultiplayer", CclNoRandomPlacementMultiplayer);
|
||||
lua_register(Lua, "SetMetaServer", CclSetMetaServer);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
/**@name popup.cpp - The popup globals. */
|
||||
//
|
||||
// (c) Copyright 2012 by Joris Dauphin
|
||||
// (c) Copyright 2012-2015 by cybermind and Joris Dauphin
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -363,7 +363,7 @@ CPopupContentTypeLine::CPopupContentTypeLine() : Color(ColorWhite), Width(0), He
|
|||
} else if (!strcmp(key, "Height")) {
|
||||
this->Height = LuaToNumber(l, -1);
|
||||
} else if (!strcmp(key, "Color")) {
|
||||
this->Color = LuaToNumber(l, -1);
|
||||
this->Color = LuaToUnsignedNumber(l, -1);
|
||||
} else {
|
||||
LuaError(l, "'%s' invalid for method 'Costs' in DefinePopups" _C_ key);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue