summaryrefslogtreecommitdiffhomepage
path: root/Stars45/HUDView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/HUDView.cpp')
-rw-r--r--Stars45/HUDView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/HUDView.cpp b/Stars45/HUDView.cpp
index 1aaaf96..48953ac 100644
--- a/Stars45/HUDView.cpp
+++ b/Stars45/HUDView.cpp
@@ -1,6 +1,6 @@
/* Project Starshatter 4.5
Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Copyright (C) 1997-2004. All Rights Reserved.
SUBSYSTEM: Stars.exe
FILE: HUDView.cpp
@@ -1116,9 +1116,9 @@ HUDView::DrawContact(Contact* contact, int index)
Point delta_v;
if (c_ship)
- delta_v = ship->Velocity() - c_ship->Velocity();
- else
- delta_v = ship->Velocity() - c_shot->Velocity();
+ delta_v = ship->Velocity() - c_ship->Velocity();
+ else if (c_shot)
+ delta_v = ship->Velocity() - c_shot->Velocity();
if (delta_v * ship->Velocity() < 0) // losing ground
closing = '-';