summaryrefslogtreecommitdiffstats
path: root/friendfinder/map/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'friendfinder/map/object.c')
-rw-r--r--friendfinder/map/object.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/friendfinder/map/object.c b/friendfinder/map/object.c
index c337cc4..45ba56c 100644
--- a/friendfinder/map/object.c
+++ b/friendfinder/map/object.c
@@ -12,6 +12,7 @@
#include "smart_map_priv.h"
#include "../draw_user.h"
+#include "../gui.h"
static void tile_array_add(struct smart_map *smart, int index)
{
@@ -169,9 +170,10 @@ int map_object_update(struct smart_map *smart)
if(smart->theme == NULL)
return 0;
-
- get_own_position(smart->ta.lat, smart->ta.lon);
- get_sender_position(smart->ta.lat, smart->ta.lon);
+
+ /* functions for saving position for various programm parts */
+ set_own_position(smart->ta.lat, smart->ta.lon);
+ set_sender_position(smart->ta.lat, smart->ta.lon);
snprintf(buffer, 512, "%lf * %lf", smart->ta.lat, smart->ta.lon);
smart->lat = smart->ta.lat;