mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2024-06-11 03:29:29 +00:00
fix signed integer variable
This commit is contained in:
parent
b8bf064b18
commit
0bbccb2524
|
@ -66,8 +66,8 @@ word drop_counter_max; // maximum value of the counter
|
||||||
|
|
||||||
unsigned long score; // player's score
|
unsigned long score; // player's score
|
||||||
unsigned int level; // level
|
unsigned int level; // level
|
||||||
unsigned int lines_remaining; // lines to complete the level
|
|
||||||
unsigned int total_lines; // total number of lines
|
unsigned int total_lines; // total number of lines
|
||||||
|
int lines_remaining; // lines to complete the level
|
||||||
|
|
||||||
// game files
|
// game files
|
||||||
#include "pieces.h"
|
#include "pieces.h"
|
||||||
|
@ -259,7 +259,7 @@ void check_crunched_lines() {
|
||||||
score += (unsigned long) s;
|
score += (unsigned long) s;
|
||||||
|
|
||||||
// score += scores[num_lines_crunched] * (level+1);
|
// score += scores[num_lines_crunched] * (level+1);
|
||||||
lines_remaining -= num_lines_crunched;
|
lines_remaining -= (int) num_lines_crunched;
|
||||||
total_lines += num_lines_crunched;
|
total_lines += num_lines_crunched;
|
||||||
|
|
||||||
// advance level
|
// advance level
|
||||||
|
|
Loading…
Reference in New Issue
Block a user