소스 검색

Ausbesserung beim verschieben und drehen von objekten im editor

Kolja Strohm 5 년 전
부모
커밋
bb02c0f48f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Asteroids/Editor/Editor.cpp

+ 2 - 2
Asteroids/Editor/Editor.cpp

@@ -189,14 +189,14 @@ void AsteroidsEditor::doMausEreignis( MausEreignis & me )
         if( me.id == ME_PLinks )
         {
             Vertex pos = kamera->getWorldCoordinates( Punkt( me.mx, me.my ) );
-            moveObj = (EditorObject *)daten->zWelt()->zObjectAt( (int)pos.x, (int)pos.y );
+            moveObj = (EditorObject *)daten->zWelt()->zObjectAt( (int)pos.x, (int)pos.y, 1 );
             if( moveObj )
                 me.verarbeitet = 1;
         }
         if( me.id == ME_PMitte )
         {
             Vertex pos = kamera->getWorldCoordinates( Punkt( me.mx, me.my ) );
-            rotObj = (EditorObject *)daten->zWelt()->zObjectAt( (int)pos.x, (int)pos.y );
+            rotObj = (EditorObject *)daten->zWelt()->zObjectAt( (int)pos.x, (int)pos.y, 1 );
             if( rotObj )
                 me.verarbeitet = 1;
         }