Skip to content

Commit

Permalink
Comment out CBasePlayer_Weapon_GetLast method and its registration in…
Browse files Browse the repository at this point in the history
… Lua bindings
  • Loading branch information
andrewmcwatters committed Dec 25, 2024
1 parent 6bfdce1 commit 58811e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mp/src/game/server/lplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ static int CBasePlayer_Weapon_DropSlot (lua_State *L) {
return 0;
}

static int CBasePlayer_Weapon_GetLast (lua_State *L) {
lua_pushweapon(L, luaL_checkplayer(L, 1)->Weapon_GetLast());
return 1;
}
//static int CBasePlayer_Weapon_GetLast (lua_State *L) {
// lua_pushweapon(L, luaL_checkplayer(L, 1)->Weapon_GetLast());
// return 1;
//}

static int CBasePlayer_HasAnyAmmoOfType (lua_State *L) {
lua_pushboolean(L, luaL_checkplayer(L, 1)->HasAnyAmmoOfType(luaL_checkinteger(L, 2)));
Expand Down Expand Up @@ -544,7 +544,7 @@ static const luaL_Reg CBasePlayermeta[] = {
{"Weapon_Equip", CBasePlayer_Weapon_Equip},
{"Weapon_Drop", CBasePlayer_Weapon_Drop},
{"Weapon_DropSlot", CBasePlayer_Weapon_DropSlot},
{"Weapon_GetLast", CBasePlayer_Weapon_GetLast},
//{"Weapon_GetLast", CBasePlayer_Weapon_GetLast},
{"HasAnyAmmoOfType", CBasePlayer_HasAnyAmmoOfType},
{"RumbleEffect", CBasePlayer_RumbleEffect},
{"IsOnLadder", CBasePlayer_IsOnLadder},
Expand Down

0 comments on commit 58811e5

Please sign in to comment.