From: Yura S. <yu...@us...> - 2004-03-15 22:29:49
|
Update of /cvsroot/timewarp/source/twgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20416/source/twgui Modified Files: twguilist.cpp Log Message: Fixing compilation problems, removing from game ship with certan error (smbdy look at it), I don't have Windows at home so please check if everything compilling with MSVC Index: twguilist.cpp =================================================================== RCS file: /cvsroot/timewarp/source/twgui/twguilist.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** twguilist.cpp 29 Feb 2004 23:22:21 -0000 1.2 --- twguilist.cpp 15 Mar 2004 22:20:33 -0000 1.3 *************** *** 941,945 **** // create the most "optimal" square map (minimum x,y positions means least search trouble (I think)). ! Nx = iround( sqrt((double)maxitems) ); Ny = maxitems/Nx + 1; --- 941,945 ---- // create the most "optimal" square map (minimum x,y positions means least search trouble (I think)). ! Nx = iround( sqrt((fix)maxitems) ); Ny = maxitems/Nx + 1; |