From ec954823b5548b396ad63b4b30d8290eabded31a Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Sat, 3 Jan 2015 12:59:44 +0100 Subject: [PATCH] beats bug, from long to float; DUH --- src/music.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music.c b/src/music.c index a407856..01a68af 100644 --- a/src/music.c +++ b/src/music.c @@ -37,7 +37,7 @@ music_load_beats(struct s_game *g, int music) { // {{{ while(fgets(buffer, sizeof(buffer), f)) { //ugly, but it's a one time beats = realloc(beats, (i+1) * sizeof(*beats)); - beats[i] = (long)atof(strtrim(buffer)); + beats[i] = strtof(strtrim(buffer), NULL); i++; }