Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
a8a5de74
Commit
a8a5de74
authored
Oct 07, 2014
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed geo
parent
62d3c07f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
interface.c
interface.c
+1
-1
structures.c
structures.c
+1
-1
No files found.
interface.c
View file @
a8a5de74
...
...
@@ -2304,7 +2304,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
.
l
ongitude
,
M
->
geo
.
lat
itude
);
mprintf
(
ev
,
"[geo] https://maps.google.com/?q=%.6lf,%.6lf"
,
M
->
geo
.
l
atitude
,
M
->
geo
.
long
itude
);
return
;
case
tgl_message_media_contact
:
mprintf
(
ev
,
"[contact] "
);
...
...
structures.c
View file @
a8a5de74
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment