]> git.street.me.uk Git - andy/viking.git/blobdiff - src/mapcoord.h
Fix CPU usage going to 100% when statusbar items update is called.
[andy/viking.git] / src / mapcoord.h
index 6f22168e6f66e0fac93b73689bdb2748bdb09afd..0cc08e464612c4722e619fc42a638cc4dc663d64 100644 (file)
  *
  */
 
  *
  */
 
+#ifndef __MAP_COORD_H
+#define __MAP_COORD_H
+
+#include <glib.h>
+
 /* common struct to all map types and map layer, to hold info about a
  * particular tile */
 
 typedef struct {
   gint x, y;
   gint z; /* zone or anything else */
 /* common struct to all map types and map layer, to hold info about a
  * particular tile */
 
 typedef struct {
   gint x, y;
   gint z; /* zone or anything else */
-  guint scale;
+  gint scale;
 } MapCoord;
 } MapCoord;
+
+#endif
+