Permalink
Browse files

Fix copy/paste not working on linux

  • Loading branch information...
UnknownShadow200 committed Nov 6, 2018
1 parent 30bb86b commit b4b9c229bc97d298ad8880f14a350235b3cc8d99
Showing with 5 additions and 5 deletions.
  1. +1 −1 src/Entity.c
  2. +1 −1 src/NixWindow.c
  3. +3 −3 src/PacketHandlers.c
View
@@ -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
@@ -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
@@ -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++);

0 comments on commit b4b9c22

Please sign in to comment.