diff --git a/celeste.c b/celeste.c index c02a082..356e760 100644 --- a/celeste.c +++ b/celeste.c @@ -739,8 +739,8 @@ static void set_hair_color(int djump) { } static void draw_hair(OBJ* obj, int facing) { - int last_x=obj->x+4-facing*2; - int last_y=obj->y+(P8btn(k_down) ? 4 : 3); + float last_x=obj->x+4-facing*2; + float last_y=obj->y+(P8btn(k_down) ? 4 : 3); HAIR* h; int i = 0; while (!(h = &obj->hair[i++])->isLast) { diff --git a/sdl12main.c b/sdl12main.c index f4c4e74..e76f686 100644 --- a/sdl12main.c +++ b/sdl12main.c @@ -600,11 +600,13 @@ Celeste_P8_val pico8emu(CELESTE_P8_CALLBACK_TYPE call, ...) { ResetPalette(); ) CASE(CELESTE_P8_CIRCFILL, //circfill(x,y,r,col) - float cx = FLOAT_ARG() - camera_x; - float cy = FLOAT_ARG() - camera_y; + float cx_ = FLOAT_ARG() - camera_x; + float cy_ = FLOAT_ARG() - camera_y; float r = FLOAT_ARG(); int col = INT_ARG(); + int cx = floorf(cx_), cy = floorf(cy_); + int realcolor = getcolor(col); if (r <= 1) {