xlib_playground

Xlib playground for experiments.
Log | Files | Refs

commit 3db362e3b97891f03bd37a0ad70db435e49d2575
parent 0f6e9439662be2820b0d8f58ff4bd187af153194
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Thu, 12 Jan 2023 16:27:29 +0900

make comment clear

Diffstat:
Mex9/object.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ex9/object.c b/ex9/object.c @@ -239,7 +239,7 @@ lldprint(LLD *p) } /* - * The order of list o will be changed. + * The order of list p will be changed. */ void lhandle_collision(List *p) @@ -248,8 +248,8 @@ lhandle_collision(List *p) List *stack, *tmp; stack = NULL; for (; p != NULL; p = p->next) { - // If p doesn't have intersection with an item in the stack - // Checking only against the first object suffices because stack is sorted. + // If p doesn't have intersection in x coodinate + // with an item in the stack if (stack != NULL && ((Object *)stack->item)->p.x + ((Object *)stack->item)->body.rectangle.w <=