diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2002-10-26 14:05:11 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2002-10-26 14:05:11 +0000 |
commit | f8f04af8cae40a244ede4a3db744dee28c32a02a (patch) | |
tree | d7972e07690f0808e673c29177a612a5d2f62b58 /games/znibbles/files/patch-src::LongObject.C | |
parent | Correct RUN_DEPENDS. (diff) |
Makes games/znibbles compiling again with gcc 3.2.1.
The patch has become somebody bigger than I was hoping for. And
the original author is MIA...
Approved by: Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw> (maintainer)
Notes
Notes:
svn path=/head/; revision=68869
Diffstat (limited to 'games/znibbles/files/patch-src::LongObject.C')
-rw-r--r-- | games/znibbles/files/patch-src::LongObject.C | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/games/znibbles/files/patch-src::LongObject.C b/games/znibbles/files/patch-src::LongObject.C new file mode 100644 index 000000000000..b0b6b4cae0f6 --- /dev/null +++ b/games/znibbles/files/patch-src::LongObject.C @@ -0,0 +1,33 @@ +--- src/LongObject.C Mon May 10 08:59:45 1999 ++++ src/LongObject.C Sat Oct 26 00:39:11 2002 +@@ -128,7 +128,7 @@ + void LongObject::read_description(Trame &t) + { + if (t.get_char() != NEW_LONGOBJ) { +- cerr << "LongObject::read_description(): ohhh le bordel!\n"; ++ std::cerr << "LongObject::read_description(): ohhh le bordel!\n"; + exit(1); + } + +@@ -161,17 +161,17 @@ + + void LongObject::display() + { +- cout << " ID:"<< id; ++ std::cout << " ID:"<< id; + printf(" %04x", classtype); +- cout << " LongObj " << pos.x << "x" \ ++ std::cout << " LongObj " << pos.x << "x" \ + << pos.y << " len=" << length << " q=[ " ; + + Pix pix = queue.first(); + for (int i = length - 1; i > 0; i--) { +- cout << queue(pix) << " "; ++ std::cout << queue(pix) << " "; + queue.next(pix); + } +- cout << "]" << endl; ++ std::cout << "]" << std::endl; + } + + |