From 7f265db06afe995d6640f828bee71bf23cc07193 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 15 Jan 2009 02:47:31 +0000 Subject: Implement tracer += operator logic. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8454 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index ec592b478c..bf48e44b0a 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -84,6 +84,13 @@ void tracer_info::reset() const tracer_info& tracer_info::operator+=(const tracer_info &other) { + count += other.count; + power += other.power; + hurt += other.hurt; + helped += other.helped; + + dont_stop = dont_stop || other.dont_stop; + return (*this); } -- cgit v1.2.3-54-g00ecf