summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAtle Hellvik Havsø <atle@havso.net>2010-12-14 23:28:19 +0100
committerAtle Hellvik Havsø <atle@havso.net>2010-12-14 23:28:19 +0100
commitb28b3c5b8ddb6d73c1e7745d15ea328326a544f9 (patch)
tree4f6d2ffa1a0e41200f7606fbe233151226b2a01d /common
parentd4e406b161376f8f7d195fbc5851c5d6751a01af (diff)
Made server send GameEnd.
Diffstat (limited to 'common')
-rw-r--r--common/connectionbase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/connectionbase.cpp b/common/connectionbase.cpp
index e2384e2..a0c5ab8 100644
--- a/common/connectionbase.cpp
+++ b/common/connectionbase.cpp
@@ -193,6 +193,11 @@ void ConnectionBase::send(const Message::p& msg) {
oa & m;
} break;
+ case Message::Types::GameEnd: {
+ Message::GameEnd::p m = dynamic_pointer_cast<Message::GameEnd>(msg);
+ oa & m;
+ } break;
+
default:
throw std::runtime_error("Serialization attempted on unknown message type.");
}