From: Rene S. <sa...@us...> - 2005-12-16 21:18:34
|
Update of /cvsroot/jake2/jake2/src/jake2/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4488/src/jake2/server Modified Files: SV_SEND.java Log Message: lots of bugfixes in redirection Index: SV_SEND.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/server/SV_SEND.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** SV_SEND.java 17 Jan 2005 23:09:41 -0000 1.8 --- SV_SEND.java 16 Dec 2005 21:18:23 -0000 1.9 *************** *** 31,34 **** --- 31,35 ---- import jake2.qcommon.*; import jake2.render.*; + import jake2.util.Lib; import jake2.util.Math3D; *************** *** 42,50 **** */ ! public static byte sv_outputbuf[] = new byte[Defines.SV_OUTPUTBUF_LENGTH]; public static void SV_FlushRedirect(int sv_redirected, byte outputbuf[]) { if (sv_redirected == Defines.RD_PACKET) { ! String s = ("print\n" + outputbuf); Netchan.Netchan_OutOfBand(Defines.NS_SERVER, Globals.net_from, s.length(), s.getBytes()); } --- 43,51 ---- */ ! public static StringBuffer sv_outputbuf = new StringBuffer(); public static void SV_FlushRedirect(int sv_redirected, byte outputbuf[]) { if (sv_redirected == Defines.RD_PACKET) { ! String s = ("print\n" + Lib.CtoJava(outputbuf)); Netchan.Netchan_OutOfBand(Defines.NS_SERVER, Globals.net_from, s.length(), s.getBytes()); } |