[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebindings/qtruby/rubylib/tutorial
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2004-07-02 8:32:36
Message-ID: 20040702083236.7275F1265F () office ! kde ! org
[Download RAW message or body]

CVS commit by rdale: 

Fixed bug in drawing cannon shot


  M +1 -1      t11/cannon.rb   1.5
  M +1 -1      t12/cannon.rb   1.5
  M +2 -2      t13/cannon.rb   1.4


--- kdebindings/qtruby/rubylib/tutorial/t13/cannon.rb  #1.3:1.4
@@ -94,5 +94,5 @@
                         @autoShootTimer.stop()
                 end
-                gameEnded = true
+                @gameEnded = true
                 repaint()
         end
@@ -111,5 +111,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new()
+                shotR = shotRect()
 
                 if shotR.intersects( targetRect() ) 

--- kdebindings/qtruby/rubylib/tutorial/t12/cannon.rb  #1.4:1.5
@@ -76,5 +76,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new()
+                shotR = shotRect()
 
                 if shotR.intersects( targetRect() ) 

--- kdebindings/qtruby/rubylib/tutorial/t11/cannon.rb  #1.4:1.5
@@ -60,5 +60,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new()
+                shotR = shotRect()
 
                 if shotR.x() > width() || shotR.y() > height()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic