Update of /cvsroot/jake2/jake2/src/jake2/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv720/src/jake2/client
Modified Files:
CL_pred.java Console.java
Log Message:
profiling
Index: Console.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/client/Console.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Console.java 8 Jul 2004 15:58:42 -0000 1.2
--- Console.java 19 Jul 2004 19:20:22 -0000 1.3
***************
*** 168,175 ****
*/
public static void CheckResize() {
! int i, j, width, oldwidth, oldtotallines, numlines, numchars;
! byte[] tbuf = new byte[Defines.CON_TEXTSIZE];
!
! width = (Globals.viddef.width >> 3) - 2;
if (width == Globals.con.linewidth)
--- 168,173 ----
*/
public static void CheckResize() {
!
! int width = (Globals.viddef.width >> 3) - 2;
if (width == Globals.con.linewidth)
***************
*** 183,205 ****
}
else {
! oldwidth = Globals.con.linewidth;
Globals.con.linewidth = width;
! oldtotallines = Globals.con.totallines;
Globals.con.totallines = Defines.CON_TEXTSIZE / Globals.con.linewidth;
! numlines = oldtotallines;
if (Globals.con.totallines < numlines)
numlines = Globals.con.totallines;
! numchars = oldwidth;
if (Globals.con.linewidth < numchars)
numchars = Globals.con.linewidth;
!
System.arraycopy(Globals.con.text, 0, tbuf, 0, Defines.CON_TEXTSIZE);
Arrays.fill(Globals.con.text, (byte)' ');
! for (i=0 ; i<numlines ; i++) {
! for (j=0 ; j<numchars ; j++) {
Globals.con.text[(Globals.con.totallines - 1 - i) * Globals.con.linewidth + j] =
tbuf[((Globals.con.current - i + oldtotallines) % oldtotallines) * oldwidth + j];
--- 181,204 ----
}
else {
! int oldwidth = Globals.con.linewidth;
Globals.con.linewidth = width;
! int oldtotallines = Globals.con.totallines;
Globals.con.totallines = Defines.CON_TEXTSIZE / Globals.con.linewidth;
! int numlines = oldtotallines;
if (Globals.con.totallines < numlines)
numlines = Globals.con.totallines;
! int numchars = oldwidth;
if (Globals.con.linewidth < numchars)
numchars = Globals.con.linewidth;
!
! byte[] tbuf = new byte[Defines.CON_TEXTSIZE];
System.arraycopy(Globals.con.text, 0, tbuf, 0, Defines.CON_TEXTSIZE);
Arrays.fill(Globals.con.text, (byte)' ');
! for (int i=0 ; i<numlines ; i++) {
! for (int j=0 ; j<numchars ; j++) {
Globals.con.text[(Globals.con.totallines - 1 - i) * Globals.con.linewidth + j] =
tbuf[((Globals.con.current - i + oldtotallines) % oldtotallines) * oldwidth + j];
Index: CL_pred.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/client/CL_pred.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** CL_pred.java 8 Jul 2004 20:24:28 -0000 1.3
--- CL_pred.java 19 Jul 2004 19:20:22 -0000 1.4
***************
*** 244,248 ****
};
! PMove.pm_airaccelerate = atof(cl.configstrings[CS_AIRACCEL]);
// bugfix (rst) yeah !!!!!!!! found the solution to the B E W E G U N G S P R O B L E M.
--- 244,252 ----
};
! try {
! PMove.pm_airaccelerate = Float.parseFloat(cl.configstrings[CS_AIRACCEL]);
! } catch (Exception e) {
! PMove.pm_airaccelerate = 0;
! }
// bugfix (rst) yeah !!!!!!!! found the solution to the B E W E G U N G S P R O B L E M.
|