projects
/
vrlugburz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dunger now saves player start position and cell size
[vrlugburz]
/
src
/
player.c
diff --git
a/src/player.c
b/src/player.c
index
0e68393
..
820dfbd
100644
(file)
--- a/
src/player.c
+++ b/
src/player.c
@@
-15,7
+15,7
@@
void upd_player_xform(struct player *p)
cgm_vec3 pos;
float celld = p->lvl ? p->lvl->cell_size : DEF_CELL_SIZE;
- cgm_vcons(&pos, p->cx * celld, p->height, p->cy * celld);
+ cgm_vcons(&pos, p->cx * celld, p->height, -p->cy * celld);
cgm_vadd(&pos, &p->cpos);
cgm_midentity(p->view_xform);