From: Ingo Ruhnke Date: Sun, 13 Jun 2004 17:54:28 +0000 (+0000) Subject: - read gravity has real, instead of int X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9d3273cf21b0636cfe1aeed60c918744b4bf2fde;p=supertux.git - read gravity has real, instead of int SVN-Revision: 1477 --- diff --git a/src/sector.cpp b/src/sector.cpp index 252cafbc7..bd450142f 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -72,13 +72,14 @@ Sector::parse(LispReader& lispreader) for(lisp_object_t* cur = lispreader.get_lisp(); !lisp_nil_p(cur); cur = lisp_cdr(cur)) { std::string token = lisp_symbol(lisp_car(lisp_car(cur))); + // FIXME: doesn't handle empty data lisp_object_t* data = lisp_car(lisp_cdr(lisp_car(cur))); LispReader reader(lisp_cdr(lisp_car(cur))); if(token == "name") { name = lisp_string(data); } else if(token == "gravity") { - gravity = lisp_integer(data); + gravity = lisp_real(data); } else if(token == "music") { song_title = lisp_string(data); load_music();