forked from TeamUlysses/ulib
Fixes #200
[FIX] A problem with targeting in single player (Effected XGUI. Thanks, bender180).
This commit is contained in:
parent
c11aa1327b
commit
add98ca82d
@ -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)*
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user