projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use more C-like naming conventions for variables.
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index 075e9d08eee3235b72ce8ef8b6283d8298cb880b..6f33146c2020ef74badb4ef85b8e89998fe334d7 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-27,7
+27,7
@@
void packed_to_token(long packed, char token[6])
for (int i = 0; i < 5; ++i)
{
char advent = (packed >> i * 6) & 63;
for (int i = 0; i < 5; ++i)
{
char advent = (packed >> i * 6) & 63;
- token[4 - i] = advent_to_ascii[advent];
+ token[4 - i] = advent_to_ascii[
(int)
advent];
}
// Ensure the last character is \0.
}
// Ensure the last character is \0.
@@
-367,7
+367,7
@@
void MOVE(long object, long where)
from=game.fixed[object-NOBJECTS];
else
from=game.place[object];
from=game.fixed[object-NOBJECTS];
else
from=game.place[object];
- if (from > 0 &&
from <= 300
)
+ if (from > 0 &&
!SPECIAL(from)
)
CARRY(object,from);
DROP(object,where);
}
CARRY(object,from);
DROP(object,where);
}
@@
-648,7
+648,7
@@
void TYPE(void)
}
for (i=1; i<=LNLENG; i++) {
}
for (i=1; i<=LNLENG; i++) {
-
INLINE[i]=advent_to_ascii[
INLINE[i]];
+
INLINE[i]=advent_to_ascii[(int)
INLINE[i]];
}
INLINE[LNLENG+1]=0;
printf("%s\n", INLINE+1);
}
INLINE[LNLENG+1]=0;
printf("%s\n", INLINE+1);