From 824f2641bd668c9f731c692db9db0754b1fc3bff Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Mon, 20 Dec 2010 19:37:01 -0600 Subject: [PATCH] (internal) GetSelectionIndexOfPlayer -> GetPlayerSelectionIndex; less wordy --- src/ScreenSelectMaster.cpp | 2 +- src/ScreenSelectMaster.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScreenSelectMaster.cpp b/src/ScreenSelectMaster.cpp index 08d66a588c..1322b8f928 100644 --- a/src/ScreenSelectMaster.cpp +++ b/src/ScreenSelectMaster.cpp @@ -930,7 +930,7 @@ float ScreenSelectMaster::GetCursorY( PlayerNumber pn ) class LunaScreenSelectMaster: public Luna { public: - static int GetSelectionIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSelectionIndexOfPlayer(Enum::Check(L, 1)) ); return 1; } + static int GetSelectionIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->GetPlayerSelectionIndex(Enum::Check(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 diff --git a/src/ScreenSelectMaster.h b/src/ScreenSelectMaster.h index ce94e7bf69..b2f1e30cd1 100644 --- a/src/ScreenSelectMaster.h +++ b/src/ScreenSelectMaster.h @@ -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 );