Fix copy/paste not working on linux

This commit is contained in:
UnknownShadow200 2018-11-07 10:01:24 +11:00
parent 30bb86babd
commit b4b9c229bc
3 changed files with 5 additions and 5 deletions

View file

@ -1013,7 +1013,7 @@ static void LocalPlayer_HandleFly(void) {
struct LocalPlayer* p = &LocalPlayer_Instance;
if (p->Hacks.CanFly && p->Hacks.Enabled) {
p->Hacks.Flying = !p->Hacks.Flying;
} else if(!p->_WarnedFly) {
} else if (!p->_WarnedFly) {
p->_WarnedFly = true;
if (Game_PureClassic) return;
Chat_AddRaw("&cFlying is currently disabled");

View file

@ -283,7 +283,7 @@ void Window_GetClipboardText(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);
}

View file

@ -573,10 +573,10 @@ static void Classic_EntityTeleport(uint8_t* data) {
}
static void Classic_RelPosAndOrientationUpdate(uint8_t* data) {
struct LocationUpdate update;
EntityID id = *data++;
Vector3 pos;
float rotY, headX;
struct LocationUpdate update;
pos.X = (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) {
struct LocationUpdate update;
EntityID id = *data++;
Vector3 pos;
struct LocationUpdate update;
pos.X = (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) {
struct LocationUpdate update;
EntityID id = *data++;
float rotY, headX;
struct LocationUpdate update;
rotY = Math_Packed2Deg(*data++);
headX = Math_Packed2Deg(*data++);