diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-08-09 22:57:00 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-08-09 22:57:00 +0000 |
| commit | b2e9308751ec0bc90dfbae69bc7309df62672e9f (patch) | |
| tree | 19a56f1e83990f98f36a9b970ecac46d22570bc0 /test/checkers.cxx | |
| parent | 050919103f76dbe4aebaa8ac8a1e2633713ee571 (diff) | |
More shadowed variables in FLUID, plus use snprintf, strlcpy, and strlcat.
Don't use extra warning flags for normal compiles.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/checkers.cxx')
| -rw-r--r-- | test/checkers.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx index 65b33a4ca..555ff6ba1 100644 --- a/test/checkers.cxx +++ b/test/checkers.cxx @@ -1,5 +1,5 @@ // -// "$Id: checkers.cxx,v 1.9.2.7.2.2 2002/05/16 12:47:43 easysw Exp $" +// "$Id: checkers.cxx,v 1.9.2.7.2.3 2002/08/09 22:57:00 easysw Exp $" // // Checkers game for the Fast Light Tool Kit (FLTK). // @@ -184,7 +184,7 @@ char check(int target,int direction) { int src = target+direction; if (tb[src] == FRIENDKING); else if (direction < 0 || tb[src] != FRIEND) return(0); - piece a = tb[target]; piece b = tb[src]; + piece aa = tb[target]; piece bb = tb[src]; tb[target] = EMPTY; tb[src] = EMPTY; int safe = (tb[src-4]&FRIEND && tb[src-8]&ENEMY @@ -195,7 +195,7 @@ char check(int target,int direction) { ||tb[src+5]&FRIEND && tb[src+10]==ENEMYKING ||tb[dst+4]==ENEMYKING && !tb[dst-4] ||tb[dst+5]==ENEMYKING && !tb[dst-5]); - tb[target] = a; tb[src] = b; + tb[target] = aa; tb[src] = bb; return(safe); } @@ -1355,5 +1355,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: checkers.cxx,v 1.9.2.7.2.2 2002/05/16 12:47:43 easysw Exp $". +// End of "$Id: checkers.cxx,v 1.9.2.7.2.3 2002/08/09 22:57:00 easysw Exp $". // |
