mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Lua Parameter type 0 is now signed int. Type 1 in unsigned int. ShopSalesman script uses signed.
This commit is contained in:
parent
45b9f9a064
commit
fe69f069ea
3 changed files with 26 additions and 15 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue