|
@@ -35,11 +35,11 @@ void Kamera2D::setName( Text *name )
|
|
|
this->name->setText( name );
|
|
|
}
|
|
|
|
|
|
-void Kamera2D::lookAtWorldPos( int x, int y )
|
|
|
+void Kamera2D::lookAtWorldPos( float x, float y )
|
|
|
{
|
|
|
- rend |= wPos != Punkt( x, y );
|
|
|
- wPos.x = (float)x;
|
|
|
- wPos.y = (float)y;
|
|
|
+ rend |= wPos != Vertex( x, y );
|
|
|
+ wPos.x = x;
|
|
|
+ wPos.y = y;
|
|
|
if( welt && welt->getWorldInfo().hasSize && welt->getWorldInfo().circular )
|
|
|
{
|
|
|
if( wPos.x < 0 )
|
|
@@ -55,12 +55,12 @@ void Kamera2D::lookAtWorldPos( int x, int y )
|
|
|
|
|
|
void Kamera2D::lookAtWorldPos( Vertex pos )
|
|
|
{
|
|
|
- lookAtWorldPos( (int)pos.x, (int)pos.y );
|
|
|
+ lookAtWorldPos( pos.x, pos.y );
|
|
|
}
|
|
|
|
|
|
-void Kamera2D::lookAtWorldArea( int width, int height )
|
|
|
+void Kamera2D::lookAtWorldArea( float width, float height )
|
|
|
{
|
|
|
- zoom = (float)getBreite() / (float)width;
|
|
|
+ zoom = (float)getBreite() / width;
|
|
|
|
|
|
}
|
|
|
|