Commit 4604d4f3 authored by vvaltman's avatar vvaltman

Merge branch 'master' of github.com:vysheng/tg

parents c182b6d2 54f6743d
......@@ -1911,6 +1911,7 @@ void interpreter_ex (char *line UU, void *ex) {
offline_mode = 0;
count = 1;
if (!line) {
do_safe_quit (0, NULL, NULL);
in_readline = 0;
return;
}
......@@ -2304,7 +2305,7 @@ void print_media (struct in_ev *ev, struct tgl_message_media *M) {
}
return;
case tgl_message_media_geo:
mprintf (ev, "[geo] https://maps.google.com/?q=%.6lf,%.6lf", M->geo.longitude, M->geo.latitude);
mprintf (ev, "[geo] https://maps.google.com/?q=%.6lf,%.6lf", M->geo.latitude, M->geo.longitude);
return;
case tgl_message_media_contact:
mprintf (ev, "[contact] ");
......
......@@ -540,8 +540,8 @@ void tglf_fetch_photo_size (struct tgl_photo_size *S) {
void tglf_fetch_geo (struct tgl_geo *G) {
unsigned x = fetch_int ();
if (x == CODE_geo_point) {
G->latitude = fetch_double ();
G->longitude = fetch_double ();
G->latitude = fetch_double ();
} else {
assert (x == CODE_geo_point_empty);
G->longitude = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment