mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Fix copy/paste not working on linux
This commit is contained in:
parent
30bb86babd
commit
b4b9c229bc
@ -1013,7 +1013,7 @@ static void LocalPlayer_HandleFly(void) {
|
|||||||
struct LocalPlayer* p = &LocalPlayer_Instance;
|
struct LocalPlayer* p = &LocalPlayer_Instance;
|
||||||
if (p->Hacks.CanFly && p->Hacks.Enabled) {
|
if (p->Hacks.CanFly && p->Hacks.Enabled) {
|
||||||
p->Hacks.Flying = !p->Hacks.Flying;
|
p->Hacks.Flying = !p->Hacks.Flying;
|
||||||
} else if(!p->_WarnedFly) {
|
} else if (!p->_WarnedFly) {
|
||||||
p->_WarnedFly = true;
|
p->_WarnedFly = true;
|
||||||
if (Game_PureClassic) return;
|
if (Game_PureClassic) return;
|
||||||
Chat_AddRaw("&cFlying is currently disabled");
|
Chat_AddRaw("&cFlying is currently disabled");
|
||||||
|
@ -283,7 +283,7 @@ void Window_GetClipboardText(String* value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Window_SetClipboardText(const String* value) {
|
void Window_SetClipboardText(const String* value) {
|
||||||
String_Copy(&clipboard_paste_text, value);
|
String_Copy(&clipboard_copy_text, value);
|
||||||
XSetSelectionOwner(win_display, xa_clipboard, win_handle, 0);
|
XSetSelectionOwner(win_display, xa_clipboard, win_handle, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -573,10 +573,10 @@ static void Classic_EntityTeleport(uint8_t* data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Classic_RelPosAndOrientationUpdate(uint8_t* data) {
|
static void Classic_RelPosAndOrientationUpdate(uint8_t* data) {
|
||||||
|
struct LocationUpdate update;
|
||||||
EntityID id = *data++;
|
EntityID id = *data++;
|
||||||
Vector3 pos;
|
Vector3 pos;
|
||||||
float rotY, headX;
|
float rotY, headX;
|
||||||
struct LocationUpdate update;
|
|
||||||
|
|
||||||
pos.X = (int8_t)(*data++) / 32.0f;
|
pos.X = (int8_t)(*data++) / 32.0f;
|
||||||
pos.Y = (int8_t)(*data++) / 32.0f;
|
pos.Y = (int8_t)(*data++) / 32.0f;
|
||||||
@ -589,9 +589,9 @@ static void Classic_RelPosAndOrientationUpdate(uint8_t* data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Classic_RelPositionUpdate(uint8_t* data) {
|
static void Classic_RelPositionUpdate(uint8_t* data) {
|
||||||
|
struct LocationUpdate update;
|
||||||
EntityID id = *data++;
|
EntityID id = *data++;
|
||||||
Vector3 pos;
|
Vector3 pos;
|
||||||
struct LocationUpdate update;
|
|
||||||
|
|
||||||
pos.X = (int8_t)(*data++) / 32.0f;
|
pos.X = (int8_t)(*data++) / 32.0f;
|
||||||
pos.Y = (int8_t)(*data++) / 32.0f;
|
pos.Y = (int8_t)(*data++) / 32.0f;
|
||||||
@ -602,9 +602,9 @@ static void Classic_RelPositionUpdate(uint8_t* data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Classic_OrientationUpdate(uint8_t* data) {
|
static void Classic_OrientationUpdate(uint8_t* data) {
|
||||||
|
struct LocationUpdate update;
|
||||||
EntityID id = *data++;
|
EntityID id = *data++;
|
||||||
float rotY, headX;
|
float rotY, headX;
|
||||||
struct LocationUpdate update;
|
|
||||||
|
|
||||||
rotY = Math_Packed2Deg(*data++);
|
rotY = Math_Packed2Deg(*data++);
|
||||||
headX = Math_Packed2Deg(*data++);
|
headX = Math_Packed2Deg(*data++);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user