Merge branch 'master' of https://github.com/zpl-c/eco2d
commit
1631e9199b
|
@ -63,8 +63,10 @@ int32_t pkt_send_keystate_handler(pkt_header *header) {
|
||||||
i->y = zpl_clamp(table.y, -1.0f, 1.0f);
|
i->y = zpl_clamp(table.y, -1.0f, 1.0f);
|
||||||
i->mx = table.mx;
|
i->mx = table.mx;
|
||||||
i->my = table.my;
|
i->my = table.my;
|
||||||
i->hx = (i->x != 0.0f) ? i->x : i->hx;
|
if (i->x != 0.0f && i->y != 0.0f) {
|
||||||
i->hy = (i->y != 0.0f) ? i->y : i->hy;
|
i->hx = i->x;
|
||||||
|
i->hy = i->y;
|
||||||
|
}
|
||||||
i->use |= table.use;
|
i->use |= table.use;
|
||||||
i->sprint = table.sprint;
|
i->sprint = table.sprint;
|
||||||
i->ctrl = table.ctrl;
|
i->ctrl = table.ctrl;
|
||||||
|
|
Loading…
Reference in New Issue