mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Use cc_uint32 for NotifyAction value
This commit is contained in:
parent
cf5300149f
commit
9889eca356
2 changed files with 6 additions and 6 deletions
|
@ -897,15 +897,15 @@ void CPE_SendPluginMessage(cc_uint8 channel, cc_uint8* data) {
|
|||
Server.SendData(buffer, 66);
|
||||
}
|
||||
|
||||
void CPE_SendNotifyAction(int action, int value) {
|
||||
cc_uint8 data[4];
|
||||
void CPE_SendNotifyAction(int action, cc_uint32 value) {
|
||||
cc_uint8 data[8];
|
||||
|
||||
data[0] = OPCODE_NOTIFY_ACTION;
|
||||
{
|
||||
data[1] = action;
|
||||
data[2] = value;
|
||||
Stream_SetU16_BE(data + 1, action);
|
||||
Stream_SetU32_BE(data + 3, value);
|
||||
}
|
||||
Server.SendData(data, 4);
|
||||
Server.SendData(data, 8);
|
||||
}
|
||||
|
||||
static void CPE_SendExtInfo(int extsCount) {
|
||||
|
|
|
@ -71,7 +71,7 @@ void Classic_SendChat(const cc_string* text, cc_bool partial);\
|
|||
void Classic_SendSetBlock(int x, int y, int z, cc_bool place, BlockID block);
|
||||
void Classic_SendLogin(void);
|
||||
void CPE_SendPlayerClick(int button, cc_bool pressed, cc_uint8 targetId, struct RayTracer* t);
|
||||
void CPE_SendNotifyAction(int button, int value);
|
||||
void CPE_SendNotifyAction(int action, cc_uint32 value);
|
||||
|
||||
/* Send a PluginMessage to the server; data must contain 64 bytes. */
|
||||
CC_API void CPE_SendPluginMessage(cc_uint8 channel, cc_uint8* data);
|
||||
|
|
Loading…
Reference in a new issue