Skip to content

Commit

Permalink
3 C++ source files: fix some errors, bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen G authored and Stephen G committed Apr 18, 2024
1 parent 1b74c5f commit 9607bfa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
14 changes: 6 additions & 8 deletions engine/src/audio/Exceptions.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
/*
* Exceptions.h
*
* Copyright (C) Daniel Horn
* Copyright (C) 2020 pyramid3d, Stephen G. Tuggy, and other Vega Strike
* contributors
* Copyright (C) 2022-2023 Stephen G. Tuggy, Benjamen R. Meyer
* Copyright (C) 2001-2024 Daniel Horn, pyramid3d, Stephen G. Tuggy,
* Benjamen R. Meyer, and other Vega Strike contributors
*
* https://github.com/vegastrike/Vega-Strike-Engine-Source
*
Expand All @@ -17,11 +15,11 @@
*
* Vega Strike 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
* 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 Vega Strike. If not, see <https://www.gnu.org/licenses/>.
* along with Vega Strike. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef VEGA_STRIKE_ENGINE_AUDIO_EXCEPTIONS_H
#define VEGA_STRIKE_ENGINE_AUDIO_EXCEPTIONS_H
Expand Down Expand Up @@ -140,7 +138,7 @@ class EndOfStreamException : public Exception {
class CorruptStreamException : public Exception {
bool fatal;
public:
CorruptStreamException(const CorruptStreamException &other) : Exception(other) {
CorruptStreamException(const CorruptStreamException &other) : Exception(other), fatal(true) {
}

explicit CorruptStreamException(bool _fatal)
Expand Down
1 change: 1 addition & 0 deletions engine/src/gfx/mesh_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ Mesh::~Mesh() {
resetIter = true;
cachedHashItem = hashItem + 1;
}
//delete hashItem;
hashers->erase(hashItem);
if (hashers->empty()) {
bfxmHashTable.Delete(hash_name);
Expand Down
20 changes: 10 additions & 10 deletions engine/src/vs_logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@

#include <cstdint>

#include <boost/move/utility_core.hpp>
#include <boost/smart_ptr/shared_ptr.hpp>
#include <boost/format.hpp>
//#include <boost/log/sources/logger.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/sinks/sync_frontend.hpp>
#include <boost/log/sinks/text_file_backend.hpp>
#include <boost/log/sinks/text_ostream_backend.hpp>
#include <boost/filesystem.hpp>
#include "boost/move/utility_core.hpp"
#include "boost/smart_ptr/shared_ptr.hpp"
#include "boost/format.hpp"
//#include "boost/log/sources/logger.hpp"
#include "boost/log/sources/severity_logger.hpp"
#include "boost/log/sources/record_ostream.hpp"
#include "boost/log/sinks/sync_frontend.hpp"
#include "boost/log/sinks/text_file_backend.hpp"
#include "boost/log/sinks/text_ostream_backend.hpp"
#include "boost/filesystem.hpp"

namespace VegaStrikeLogging {

Expand Down

0 comments on commit 9607bfa

Please sign in to comment.