DEADSOFTWARE

gl: handle map bounds
[d2df-sdl.git] / src / game / renders / opengl / r_render.pas
index e40b600fe04ada739e305fdeba2d083c66035877..2a385a15b4724838172a520fb0d2bf0ed2214b13 100644 (file)
@@ -180,7 +180,7 @@ implementation
       // TODO setup player view siz
 
       // TODO draw player view + setup screen coords
-      r_Map_Draw(0, 0, gScreenWidth, gScreenHeight, gPlayer1.obj.x + 32, gPlayer1.obj.y + 32); // !!! remove unnamed consts
+      r_Map_Draw(0, 0, gScreenWidth, gScreenHeight, gPlayer1.obj.x + 32, gPlayer1.obj.y + 32, gPlayer1); // !!! remove unnamed consts
 
       // TODO draw holmes inspector
 
@@ -251,10 +251,7 @@ implementation
 {$IFDEF ENABLE_GIBS}
   function r_Render_GetGibRect (m, id: Integer): TRectWH;
   begin
-    Result.X := 16;
-    Result.Y := 16;
-    Result.Width := 16;
-    Result.Height := 16;
+    result := r_Map_GetGibSize(m, id);
   end;
 {$ENDIF}