home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37382f4
)
Server: Minor function renaming.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 3 Sep 2014 00:05:01 +0000
(
02:05
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 3 Sep 2014 00:05:01 +0000
(
02:05
+0200)
src/server/map.c
patch
|
blob
|
history
diff --git
a/src/server/map.c
b/src/server/map.c
index 4b49fa1b97d6e389787c08f2fc56f5410c1d3dee..40aaaa9850a9baaa3f6655c4c13450fab03d7c5b 100644
(file)
--- a/
src/server/map.c
+++ b/
src/server/map.c
@@
-13,7
+13,7
@@
/* Helper to mv_yx_in_dir_legal(). Move "yx" into hex direction "d". */
/* Helper to mv_yx_in_dir_legal(). Move "yx" into hex direction "d". */
-static void mv_yx_in_
hex_
dir(char d, struct yx_uint8 * yx);
+static void mv_yx_in_dir(char d, struct yx_uint8 * yx);
/* Helper to mv_yx_in_dir_legal(). Move "yx" into hex direction "d", do wrapping
* logic, return 1 if "yx" ends outside of the original wrap space, else 0.
/* Helper to mv_yx_in_dir_legal(). Move "yx" into hex direction "d", do wrapping
* logic, return 1 if "yx" ends outside of the original wrap space, else 0.
@@
-40,7
+40,7
@@
static void make_trees();
-static void mv_yx_in_
hex_
dir(char d, struct yx_uint8 * yx)
+static void mv_yx_in_dir(char d, struct yx_uint8 * yx)
{
if (d == 'e')
{
{
if (d == 'e')
{
@@
-86,7
+86,7
@@
static uint8_t mv_yx_in_dir_wrap(char d, struct yx_uint8 * yx)
struct yx_uint8 original;
original.y = yx->y;
original.x = yx->x;
struct yx_uint8 original;
original.y = yx->y;
original.x = yx->x;
- mv_yx_in_
hex_
dir(d, yx);
+ mv_yx_in_dir(d, yx);
if (strchr("edc", d) && yx->x < original.x)
{
wrap_west_east++;
if (strchr("edc", d) && yx->x < original.x)
{
wrap_west_east++;