summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar <Reimar@Leike.name>2015-12-10 11:29:12 +0100
committerReimar <Reimar@Leike.name>2015-12-10 11:29:12 +0100
commitef61b47e141fde828d73e085e758939e4cfcfe31 (patch)
treea914e21c9391ad6c0dc673ef7217771c175c2d7e
parent722fc3c56dde0acb7a7748d6cc2430f2f3cced95 (diff)
downloadRCade-ef61b47e141fde828d73e085e758939e4cfcfe31.tar
RCade-ef61b47e141fde828d73e085e758939e4cfcfe31.tar.gz
RCade-ef61b47e141fde828d73e085e758939e4cfcfe31.tar.bz2
RCade-ef61b47e141fde828d73e085e758939e4cfcfe31.tar.xz
RCade-ef61b47e141fde828d73e085e758939e4cfcfe31.zip
defaulkt acc no longer in save folder
-rw-r--r--data/default/account.txt40
-rw-r--r--main.cpp2
2 files changed, 41 insertions, 1 deletions
diff --git a/data/default/account.txt b/data/default/account.txt
new file mode 100644
index 0000000..d5eda86
--- /dev/null
+++ b/data/default/account.txt
@@ -0,0 +1,40 @@
1Start-Account
20
30
41
5Small Fighter
6Hitpoints
710
820
91
100
11Armor
1250
1320
141
150
16Battery
1710
1820
191
200
21Generator
222
2320
241
250
26Acceleration
27300
2820
291
300
31Max Speed
32200
3320
341
350
362
37Beamer 2
38empty Slot
390
400
diff --git a/main.cpp b/main.cpp
index 9cf73d4..738743d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -691,7 +691,7 @@ int GameHandler::game()
691 if(*acname != "") 691 if(*acname != "")
692 { 692 {
693 delete user; 693 delete user;
694 user = new Account("save/default account.txt"); 694 user = new Account("data/default/account.txt");
695 user->name = *acname; 695 user->name = *acname;
696 menus[5]->refresh(); 696 menus[5]->refresh();
697 menus[3]->refresh(); 697 menus[3]->refresh();