(internal) GetSelectionIndexOfPlayer -> GetPlayerSelectionIndex; less wordy
This commit is contained in:
@@ -930,7 +930,7 @@ float ScreenSelectMaster::GetCursorY( PlayerNumber pn )
|
||||
class LunaScreenSelectMaster: public Luna<ScreenSelectMaster>
|
||||
{
|
||||
public:
|
||||
static int GetSelectionIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSelectionIndexOfPlayer(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
|
||||
static int GetSelectionIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->GetPlayerSelectionIndex(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
|
||||
// should I even bother adding this? -aj
|
||||
// would have to make a public function to get this in ssmaster.h:
|
||||
// m_aGameCommands[i].m_sName
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
virtual bool AllowLateJoin() const { return true; }
|
||||
|
||||
// sm-ssc additions:
|
||||
int GetSelectionIndexOfPlayer(PlayerNumber pn){ return GetSelectionIndex(pn); }
|
||||
int GetPlayerSelectionIndex(PlayerNumber pn){ return GetSelectionIndex(pn); }
|
||||
|
||||
// Lua
|
||||
virtual void PushSelf( lua_State *L );
|
||||
|
||||
Reference in New Issue
Block a user