xlib_playground

Xlib playground for experiments.
Log | Files | Refs

commit d371e6bf2f54218b2f851dea60dc0dcf0e27f069
parent 5259a36aa180ec2c14c6fe2baebbce3602c0ae84
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Fri, 13 Jan 2023 16:19:44 +0900

fix bug

Diffstat:
Mex9/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ex9/main.c b/ex9/main.c @@ -485,7 +485,7 @@ col_pb(Object *op, Object *ob) if (op->type == TBLOCK && ob->type == TPLAYER) { handle_collision_mf(ob, op); if(is_on_floor(ob, op)) - op->on_floor = 1; + ob->on_floor = 1; } else if (op->type == TPLAYER && ob->type == TBLOCK) { handle_collision_mf(op, ob); if(is_on_floor(op, ob))