From c827133fa3d2ce8a482961d5422e753cdfeada98 Mon Sep 17 00:00:00 2001 From: Deskull Date: Mon, 19 May 2014 23:31:27 +0900 Subject: [PATCH] [BUGGY] Add creation numbers and dead numbers to Spcies class. Fix function call error. --- Deeangband/Dungeon.cpp | 2 +- Deeangband/Floor.cpp | 3 +++ Deeangband/Species.h | 4 ++++ lib-Vanilla/Specie.xml | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Deeangband/Dungeon.cpp b/Deeangband/Dungeon.cpp index ded4cb6..d889e0e 100644 --- a/Deeangband/Dungeon.cpp +++ b/Deeangband/Dungeon.cpp @@ -59,7 +59,7 @@ namespace Deeangband Coordinates Dungeon::GetBaseSize(void) { - return this->GetBaseSize(); + return this->baseSize; } } \ No newline at end of file diff --git a/Deeangband/Floor.cpp b/Deeangband/Floor.cpp index e884776..319dfea 100644 --- a/Deeangband/Floor.cpp +++ b/Deeangband/Floor.cpp @@ -50,7 +50,10 @@ namespace Deeangband } } + creatures.resize(0); doors.resize(0); + traps.resize(0); + items.resize(0); } Floor::Floor() diff --git a/Deeangband/Species.h b/Deeangband/Species.h index 41ac76a..7e8aee4 100644 --- a/Deeangband/Species.h +++ b/Deeangband/Species.h @@ -39,6 +39,10 @@ namespace Deeangband std::map skillExpList; //!< ƒXƒLƒ‹ŒoŒ±’lƒŠƒXƒg + NUMBER currentCreationNumber; //!< Œ»Ý¶¬” + NUMBER currentDeadNumber; //!< Œ»ÝŽ€–S” + NUMBER maxCreationNumber; //!< Å‘吶¬” + friend class boost::serialization::access; template void serialize(Archive &archive, const unsigned int) { diff --git a/lib-Vanilla/Specie.xml b/lib-Vanilla/Specie.xml index 155f0c9..96251cb 100644 --- a/lib-Vanilla/Specie.xml +++ b/lib-Vanilla/Specie.xml @@ -30,3 +30,8 @@ + + + + + -- 2.11.0