(internal) GetSelectionIndexOfPlayer -> GetPlayerSelectionIndex; less wordy

This commit is contained in:
AJ Kelly
2010-12-20 19:37:01 -06:00
parent 8e742dce5a
commit 824f2641bd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 );