projects
/
gnushogi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Parametrize more hardcoded contants.
[gnushogi.git]
/
gnushogi
/
rawdsp.c
diff --git
a/gnushogi/rawdsp.c
b/gnushogi/rawdsp.c
index
0aeeb35
..
130773e
100644
(file)
--- a/
gnushogi/rawdsp.c
+++ b/
gnushogi/rawdsp.c
@@
-378,8
+378,8
@@
Raw_EditBoard(void)
}
else
{
- c = '9' - s[1];
- r = 'i' - s[2];
+ c = COL_NAME(s[1]);
+ r = ROW_NAME(s[2]);
}
if ((c >= 0) && (c < NO_COLS) && (r >= 0) && (r < NO_ROWS))