projects
/
ghostsoverboard
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2351f97
)
Octopuses stay on the screen now
author
Heli Hyvättinen
<heli.hyvattinen@kymp.net>
Mon, 20 Jun 2011 16:31:07 +0000
(19:31 +0300)
committer
Heli Hyvättinen
<heli.hyvattinen@kymp.net>
Mon, 20 Jun 2011 16:31:07 +0000
(19:31 +0300)
timercontrolledtursas.cpp
patch
|
blob
|
history
diff --git
a/timercontrolledtursas.cpp
b/timercontrolledtursas.cpp
index
1b89939
..
07828ff
100644
(file)
--- a/
timercontrolledtursas.cpp
+++ b/
timercontrolledtursas.cpp
@@
-68,14
+68,14
@@
void TimerControlledTursas::move()
QRect sceneRectangle = scene()->sceneRect().toRect();
- if (newx < sceneRectangle.left() || newx > sceneRectangle.right())
+ if (newx < sceneRectangle.left() || newx > sceneRectangle.right()-40)
{
changeDirection();
return;
}
- if (newy < sceneRectangle.top() || newy > sceneRectangle.bottom())
+ if (newy < sceneRectangle.top() || newy > sceneRectangle.bottom()-40)
{
changeDirection();
return; //the old x and y values remain intact