Skip to content

Commit

Permalink
Fix big numbers sending in net.WriteTable()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mijyuoon committed Apr 21, 2014
1 parent 1bd8973 commit 7cd4fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garrysmod/lua/includes/modules/net.lua
Expand Up @@ -97,7 +97,7 @@ net.WriteVars =
{
[TYPE_NIL] = function ( t, v ) net.WriteUInt( t, 8 ) end,
[TYPE_STRING] = function ( t, v ) net.WriteUInt( t, 8 ) net.WriteString( v ) end,
[TYPE_NUMBER] = function ( t, v ) net.WriteUInt( t, 8 ) net.WriteFloat( v ) end,
[TYPE_NUMBER] = function ( t, v ) net.WriteUInt( t, 8 ) net.WriteDouble( v ) end,
[TYPE_TABLE] = function ( t, v ) net.WriteUInt( t, 8 ) net.WriteTable( v ) end,
[TYPE_BOOL] = function ( t, v ) net.WriteUInt( t, 8 ) net.WriteBit( v ) end,
[TYPE_ENTITY] = function ( t, v ) net.WriteUInt( t, 8 ) net.WriteEntity( v ) end,
Expand All @@ -120,7 +120,7 @@ net.ReadVars =
{
[TYPE_NIL] = function () return end,
[TYPE_STRING] = function () return net.ReadString() end,
[TYPE_NUMBER] = function () return net.ReadFloat() end,
[TYPE_NUMBER] = function () return net.ReadDouble() end,
[TYPE_TABLE] = function () return net.ReadTable() end,
[TYPE_BOOL] = function () return net.ReadBit() == 1 end,
[TYPE_ENTITY] = function () return net.ReadEntity() end,
Expand Down

0 comments on commit 7cd4fc3

Please sign in to comment.