+static int get_toon_direction(char *direction_raw)
+{
+ static char *direction = NULL;
+
+ /* !!! MEMORY LEAK HERE! FIX IT! !!! */
+ setString(&direction, getStringToLower(direction_raw));
+
+ return (strcmp(direction, "left") == 0 ? MV_LEFT :
+ strcmp(direction, "right") == 0 ? MV_RIGHT :
+ strcmp(direction, "up") == 0 ? MV_UP :
+ strcmp(direction, "down") == 0 ? MV_DOWN : MV_NO_MOVING);
+}
+