![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/Stats/Stats.cpp
- Revision:
- 50:3cf9a94a264e
- Parent:
- 49:441c32f6603e
- Child:
- 61:f3c402bc2ad0
--- a/MenuClasses/Stats/Stats.cpp Fri Apr 26 17:16:22 2019 +0000 +++ b/MenuClasses/Stats/Stats.cpp Fri Apr 26 18:04:19 2019 +0000 @@ -44,9 +44,6 @@ Stats::read(sd); fp = fopen("/sd/highestlevel.txt", "w"); _current_level = level; - if(_current_level == 0) { - _current_level = 1; - } if (_stored_top_level < _current_level) { _top_level = _current_level; } @@ -73,7 +70,7 @@ // now open file for reading fp = fopen("/sd/highestlevel.txt", "r"); - _stored_top_level = 1; // level 1 + _stored_top_level = 0; // level 0 if (fp == NULL) { // if it can't open the file then print error message //serial.printf("Error! Unable to open file!\n");