X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_player.pas;h=355ecf323985108f69d23d047c3a34399fb77dcc;hb=8d99e158428b4ed90b09ee17933c9a2a48532157;hp=8c64fd0423ce66f9c7717fd1353abef54bd233a9;hpb=37c826b3dfdfbdc0f44c0a4fe21354e85547be8f;p=d2df-sdl.git diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 8c64fd0..355ecf3 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -588,15 +588,14 @@ procedure g_Bot_RemoveAll(); implementation uses -{$IFDEF USE_NANOGL} - nanoGL, -{$ELSE} - GL, +{$INCLUDE ../nogl/noGLuses.inc} +{$IFDEF ENABLE_HOLMES} + g_holmes, {$ENDIF} e_log, g_map, g_items, g_console, g_gfx, Math, g_options, g_triggers, g_menu, g_game, g_grid, wadreader, g_main, g_monsters, CONFIG, g_language, - g_net, g_netmsg, g_window, g_holmes, + g_net, g_netmsg, g_window, utils, xstreams; const PLR_SAVE_VERSION = 0; @@ -2414,10 +2413,13 @@ procedure TPlayer.DrawAim(); var ex, ey: Integer; begin + +{$IFDEF ENABLE_HOLMES} if isValidViewPort and (self = gPlayer1) then begin g_Holmes_plrLaser(ax0, ay0, ax1, ay1); end; +{$ENDIF} e_DrawLine(sz, ax0, ay0, ax1, ay1, 255, 0, 0, 96); if (g_Map_traceToNearestWall(ax0, ay0, ax1, ay1, @ex, @ey) <> nil) then