From 9d3273cf21b0636cfe1aeed60c918744b4bf2fde Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 13 Jun 2004 17:54:28 +0000 Subject: [PATCH] - read gravity has real, instead of int SVN-Revision: 1477 --- src/sector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.11.0