[Kde-games-devel] A patch for kreversi

Albert 'TSDgeos' Astals Cid tsdgeos at terra.es
Thu Jul 10 20:14:37 CEST 2003


it removes a variable and a line of code that were not doing anything, 
primarily because the variable was never initializated.

The patch is 

Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/kreversi/board.cpp,v
retrieving revision 1.27
diff -u -r1.27 board.cpp
--- board.cpp   20 May 2003 14:44:21 -0000      1.27
+++ board.cpp   10 Jul 2003 16:03:19 -0000
@@ -345,7 +345,6 @@

 void Board::playSound(SoundType type)
 {
-    if ( !sound ) return;
     QString s("kreversi/sounds/");
     s += SOUND[type];
     KAudioPlayer::play( locate("data", s) );
Index: board.h
===================================================================
RCS file: /home/kde/kdegames/kreversi/board.h,v
retrieving revision 1.7
diff -u -r1.7 board.h
--- board.h     20 May 2003 14:44:21 -0000      1.7
+++ board.h     10 Jul 2003 16:03:19 -0000
@@ -150,7 +150,6 @@
   int _zoomed_size;
   Player human;
   bool nopaint;
-  bool sound;

   QColor bgColor;
   QPixmap bg;



More information about the kde-games-devel mailing list