[FIX] A problem with targeting in single player (Effected XGUI. Thanks, bender180).
This commit is contained in:
Nayruden 2013-07-27 13:07:20 -06:00
parent c11aa1327b
commit add98ca82d
2 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,7 @@ v2.51 - *(00/00/00)*
* [FIX] A user group lower casing that no longer belonged in the code (Thanks, iamalexer).
* [FIX] Some issues with casing in ULib commands (Thanks, TheSpy7).
* [FIX] Invalid time restrictions throwing an error (Thanks, Scratch).
* [FIX] A problem with targeting in single player (Effected XGUI. Thanks, bender180).
* [REMOVED] Temp garry-patch for reading from the data directory that appears to be fixed now.
v2.50 - *(01/27/13)*

View File

@ -109,8 +109,13 @@ end
Revisions:
v2.50 - Initial.
v2.51 - Added exception for single player since it's handled differently on client and server.
]]
function ULib.getUniqueIDForPlayer( ply )
if game.SinglePlayer() then
return "1"
end
local players = player.GetAll()
for _, indexFn in ipairs( checkIndexes ) do
local id = indexFn( ply )