From 0bcc92d90020d0c4f7d3086189cc94e4990517b1 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 19 Jul 2014 17:03:32 +0200 Subject: Part 3: Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into 4.3.4 --- .../authserver/Server/BattlenetBitStream.cpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/server/authserver/Server/BattlenetBitStream.cpp (limited to 'src/server/authserver/Server/BattlenetBitStream.cpp') diff --git a/src/server/authserver/Server/BattlenetBitStream.cpp b/src/server/authserver/Server/BattlenetBitStream.cpp new file mode 100644 index 00000000000..906d7802631 --- /dev/null +++ b/src/server/authserver/Server/BattlenetBitStream.cpp @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2008-2014 TrinityCore + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "BattlenetBitStream.h" + +template<> +bool Battlenet::BitStream::Read(uint32 /*bitCount*/) +{ + return Read(1) != 0; +} -- cgit v1.2.3