aboutsummaryrefslogtreecommitdiffstats
path: root/src/brice.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-06-09 08:29:18 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-06-09 08:29:18 -0400
commit22882f01ed537cae28b2ce80b86264a9c9c52b00 (patch)
tree553dea987d50668b05181a6ed9abd0d0adf7cc30 /src/brice.cpp
parent6882786999581e2280c870249ae448c744767e73 (diff)
proper game resetting
Diffstat (limited to 'src/brice.cpp')
-rw-r--r--src/brice.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/brice.cpp b/src/brice.cpp
index 07cd05d..d5ac46d 100644
--- a/src/brice.cpp
+++ b/src/brice.cpp
@@ -33,6 +33,12 @@ namespace game {
}
}
+ void briceClear(void) {
+ std::ofstream out ("brice.dat", std::ios::out);
+ out.close();
+ brice.clear();
+ }
+
void briceSave(void) {
std::ofstream out ("brice.dat", std::ios::out | std::ios::binary);
std::string data = std::to_string(brice.size()) + '\n';