[Gcblue-commits] gcb_wx/src/common simmath.cpp,1.23,1.24 tcStream.cpp,1.7,1.8
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-04-16 20:44:51
|
Update of /cvsroot/gcblue/gcb_wx/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11335/src/common Modified Files: simmath.cpp tcStream.cpp Log Message: housekeeping, networking upgrades, fixed wrapping problems with world map Index: simmath.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/simmath.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** simmath.cpp 10 Mar 2005 03:28:28 -0000 1.23 --- simmath.cpp 16 Apr 2005 20:44:42 -0000 1.24 *************** *** 188,193 **** bool bLeftIn, bRightIn; bool bAdjustLeft; ! bool bWrapped = left > right; ! if (r.top > top) { r.Offset(0, top - r.top); --- 188,194 ---- bool bLeftIn, bRightIn; bool bAdjustLeft; ! // bool bWrapped = left > right; ! bool bWrapped = r.left > r.right; ! if (r.top > top) { r.Offset(0, top - r.top); *************** *** 197,200 **** --- 198,203 ---- } + if (bWrapped) return; + if (r.left > r.right) { r.left -= C_TWOPI; Index: tcStream.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/tcStream.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** tcStream.cpp 17 May 2004 00:38:53 -0000 1.7 --- tcStream.cpp 16 Apr 2005 20:44:42 -0000 1.8 *************** *** 174,178 **** } ! tcStream& tcStream::operator<<(std::string& val) { size_t len = val.size(); --- 174,178 ---- } ! tcStream& tcStream::operator<<(const std::string& val) { size_t len = val.size(); |