Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* rocks.c (struct rock): changed generic ones to Sprite.
[vor.git]
/
score.c
diff --git
a/score.c
b/score.c
index
faef94a
..
5738e72
100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-16,19
+16,19
@@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
-#include "SFont.h"
-#include "file.h"
-#include "score.h"
-
#include <SDL.h>
#include <SDL_keysym.h>
#include <SDL.h>
#include <SDL_keysym.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "SFont.h"
+
+#include "common.h"
+#include "config.h"
+#include "file.h"
+#include "score.h"
+
// High score table
struct highscore g_scores[N_SCORES] = {
{1*60*1000,"-"},
// High score table
struct highscore g_scores[N_SCORES] = {
{1*60*1000,"-"},
@@
-55,8
+55,6
@@
read_high_score_table()
if(f) {
// If the file exists, read from it
for(i = 0; i<N_SCORES; i++) {
if(f) {
// If the file exists, read from it
for(i = 0; i<N_SCORES; i++) {
- g_scores[i].score = 0;
- g_scores[i].name[0] = 0;
fscanf(f, "%d %31[^\n]", &g_scores[i].score, g_scores[i].name);
}
fclose(f);
fscanf(f, "%d %31[^\n]", &g_scores[i].score, g_scores[i].name);
}
fclose(f);