home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make grids hexagonal, remove all diagonal movement penalty hassle.
[plomrogue]
/
src
/
client
/
draw_wins.c
diff --git
a/src/client/draw_wins.c
b/src/client/draw_wins.c
index 08e59270f36931451870f7c5e34a5fe6e6af9b55..dc655e76dad51d71d522794a2e240bfa50dbde19 100644
(file)
--- a/
src/client/draw_wins.c
+++ b/
src/client/draw_wins.c
@@
-338,14
+338,14
@@
extern void draw_win_log(struct Win * win)
extern void draw_win_map(struct Win * win)
{
extern void draw_win_map(struct Win * win)
{
- try_resize_winmap(win, world.map.size.y, world.map.size.x);
+ try_resize_winmap(win, world.map.size.y, world.map.size.x
* 2
);
uint16_t z = 0;
uint16_t x, y;
for (y = 0; y < world.map.size.y; y++)
{
for (x = 0; x < world.map.size.x; x++)
{
uint16_t z = 0;
uint16_t x, y;
for (y = 0; y < world.map.size.y; y++)
{
for (x = 0; x < world.map.size.x; x++)
{
- set_ch_on_yx(win, y, x, world.map.cells[z]);
+ set_ch_on_yx(win, y, x
* 2 + (y % 2)
, world.map.cells[z]);
z++;
}
}
z++;
}
}