diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas
index 5ba00a7ad526f3a3e025954efc7dbd20510eefa1..4a22a3b4a827a2a93c9079348a6fafaee9321734 100644 (file)
--- a/src/game/g_weapons.pas
+++ b/src/game/g_weapons.pas
//vy := (dy*10 div d)*yi;
{$IF DEFINED(D2F_DEBUG)}
- stt := curTimeMicro();
+ stt := getTimeMicro();
{$ENDIF}
xx := x;
begin
_collide := True;
{$IF DEFINED(D2F_DEBUG)}
- stt := curTimeMicro()-stt;
+ stt := getTimeMicro()-stt;
e_WriteLog(Format('*** old trace time: %u microseconds', [LongWord(stt)]), MSG_NOTIFY);
showTime := false;
{$ENDIF}
{$IF DEFINED(D2F_DEBUG)}
if showTime then
begin
- stt := curTimeMicro()-stt;
+ stt := getTimeMicro()-stt;
e_WriteLog(Format('*** old trace time: %u microseconds', [LongWord(stt)]), MSG_NOTIFY);
end;
{$ENDIF}
{$IF DEFINED(D2F_DEBUG)}
e_WriteLog(Format('GUN TRACE: (%d,%d) to (%d,%d)', [x, y, x2, y2]), MSG_NOTIFY);
- stt := curTimeMicro();
+ stt := getTimeMicro();
{$ENDIF}
wallHitFlag := (g_Map_traceToNearestWall(x, y, x2, y2, @wallHitX, @wallHitY) <> nil);
if wallHitFlag then
begin
{$IF DEFINED(D2F_DEBUG)}
- stt := curTimeMicro()-stt;
+ stt := getTimeMicro()-stt;
e_WriteLog(Format('*** new trace time: %u microseconds', [LongWord(stt)]), MSG_NOTIFY);
{$ENDIF}
g_GFX_Spark(wallHitX, wallHitY, 2+Random(2), 180+a, 0, 0);
else
begin
{$IF DEFINED(D2F_DEBUG)}
- stt := curTimeMicro()-stt;
+ stt := getTimeMicro()-stt;
e_WriteLog(Format('*** new trace time: %u microseconds', [LongWord(stt)]), MSG_NOTIFY);
{$ENDIF}
end;