summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Shot.h
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 21:14:46 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 21:14:46 +0000
commitef83cdced6bc0fd4ee94f03237ad0201ef012a6b (patch)
tree4497800ab32a424ebcdb33d478d0097f3e9d79ab /Stars45/Shot.h
parent9651fc998683bb2277b3f739f6797abc83fbcb2c (diff)
downloadstarshatter-ef83cdced6bc0fd4ee94f03237ad0201ef012a6b.zip
starshatter-ef83cdced6bc0fd4ee94f03237ad0201ef012a6b.tar.gz
starshatter-ef83cdced6bc0fd4ee94f03237ad0201ef012a6b.tar.bz2
Various things needed to compile the normal executable.
Do note that it is possible to compile Starshatter.exe now.
Diffstat (limited to 'Stars45/Shot.h')
-rw-r--r--Stars45/Shot.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Stars45/Shot.h b/Stars45/Shot.h
index 52f5a6c..2bd5d06 100644
--- a/Stars45/Shot.h
+++ b/Stars45/Shot.h
@@ -96,6 +96,8 @@ public:
virtual bool Update(SimObject* obj);
virtual const char* GetObserverName() const;
+ int operator == (const Shot& s) const { return id == s.id; }
+
protected:
const Ship* owner;