Lua Parameter type 0 is now signed int. Type 1 in unsigned int. ShopSalesman script uses signed.

This commit is contained in:
Filip Maj 2016-01-31 12:23:12 -05:00
parent 45b9f9a064
commit fe69f069ea
3 changed files with 26 additions and 15 deletions

View file

@ -75,6 +75,19 @@ namespace FFXIVClassic_Lobby_Server.common
((input << 24) & 0xff000000);
}
public static int swapEndian(int input)
{
uint inputAsUint = (uint)input;
input = (int)
(((inputAsUint >> 24) & 0xff) |
((inputAsUint << 8) & 0xff0000) |
((inputAsUint >> 8) & 0xff00) |
((inputAsUint << 24) & 0xff000000));
return input;
}
public static uint MurmurHash2(string key, uint seed)
{
// 'm' and 'r' are mixing constants generated offline.