This patch is for package: kdegames-3.0.3 Main purpose is updating the kde sources for mips-sgi-irix Comments mhertha@hartmann-hertha.de *** kdegames-3.0.3/ksnake/snake.cpp Wed Aug 28 11:11:55 2002 --- kdegames-3.0.3/ksnake/snake.cpp.ORG Wed Aug 28 09:17:40 2002 *************** *** 139,149 **** } ! // CompuSnake::CompuSnake( Board *b, PixServer *p) ! // : Snake( b, p, NORTH_GATE, CompuSnakePix ) ! // { ! // init(); ! // } bool CompuSnake::init() { --- 139,149 ---- } ! CompuSnake::CompuSnake( Board *b, PixServer *p) ! : Snake( b, p, NORTH_GATE, CompuSnakePix ) ! { ! init(); ! } bool CompuSnake::init() { *************** *** 456,466 **** } } ! // SamySnake::SamySnake( Board *b, PixServer *p) ! // : Snake( b, p, SOUTH_GATE, SamyPix ) ! // { ! // init(); ! // } void SamySnake::init() { --- 456,466 ---- } } ! SamySnake::SamySnake( Board *b, PixServer *p) ! : Snake( b, p, SOUTH_GATE, SamyPix ) ! { ! ! } void SamySnake::init() { *** kdegames-3.0.3/katomic/gamewidget.cpp Wed Aug 28 08:42:17 2002 --- kdegames-3.0.3/katomic/gamewidget.cpp.ORG Wed Aug 28 08:41:19 2002 *************** *** 105,112 **** level=l; QString levelFile = locate("appdata", QString("levels/level_%1").arg(l)); if (levelFile.isNull()) { ! updateLevel(1); ! return; } KSimpleConfig cfg(levelFile, true); --- 105,111 ---- level=l; QString levelFile = locate("appdata", QString("levels/level_%1").arg(l)); if (levelFile.isNull()) { ! return updateLevel(1); } KSimpleConfig cfg(levelFile, true); *** kdegames-3.0.3/kjumpingcube/cubebox.cpp Wed Aug 28 08:53:32 2002 --- kdegames-3.0.3/kjumpingcube/cubebox.cpp.ORG Wed Aug 28 08:52:14 2002 *************** *** 196,205 **** if(player==One) { ! return (int)pow((float)cubesOne,2)+pointsOne-(int)pow((float)cubesTwo,2)-pointsTwo; } else ! return (int)pow((float)cubesTwo,2)+pointsTwo-(int)pow((float)cubesOne,2)-pointsOne; } --- 196,205 ---- if(player==One) { ! return (int)pow((float)cubesOne,2)+pointsOne-(int)pow(cubesTwo,2)-pointsTwo; } else ! return (int)pow((float)cubesTwo,2)+pointsTwo-(int)pow(cubesOne,2)-pointsOne; } *** kdegames-3.0.3/kjumpingcube/brain.cpp Wed Aug 28 08:55:45 2002 --- kdegames-3.0.3/kjumpingcube/brain.cpp.ORG Wed Aug 28 08:55:02 2002 *************** *** 109,115 **** worth[i]=new double[box.dim()]; // alle Werte auf kleinstmöglichen Wert setzen ! double min=-pow(2.0,(int)sizeof(long int)*8-1); // Maximum auf kleinst möglichen Wert setzen for(i=0;iwidth(); ! int d = (int)((sqrt(2.)-2./3)*w); QRect cr = QRect(0, 0, d, d); cr.moveCenter(QPoint(w/2, w/2)); p.drawEllipse(cr); if (blockMode) { ! int a = (int)(w/(3.*sqrt(2.))); int ra = 2*w/3+1; cr = QRect(0, 0, ra, ra); --- 40,52 ---- // base circle int w = pixmap->width(); ! int d = (int)((sqrt(2)-2./3)*w); QRect cr = QRect(0, 0, d, d); cr.moveCenter(QPoint(w/2, w/2)); p.drawEllipse(cr); if (blockMode) { ! int a = (int)(w/(3.*sqrt(2))); int ra = 2*w/3+1; cr = QRect(0, 0, ra, ra);