summaryrefslogtreecommitdiff
path: root/games/freeblocks/files/patch-src_block.h
blob: bbe03892da35b096c0b4bbc183fe6c6c9c3bb3d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--- src/block.h.orig	2015-03-09 12:48:31 UTC
+++ src/block.h
@@ -33,21 +33,21 @@
 #define SPEED_TIME 1800 / (60/FPS)
 #define MAX_SPEED 25
 
-const int POINTS_PER_BLOCK;
-const int POINTS_PER_BUMP;
-const int POINTS_PER_COMBO_BLOCK;
+extern const int POINTS_PER_BLOCK;
+extern const int POINTS_PER_BUMP;
+extern const int POINTS_PER_COMBO_BLOCK;
 
-int ROWS;
-int COLS;
-int NUM_BLOCKS;
-int START_ROWS;
-int DISABLED_ROWS;
-int CURSOR_MAX_X;
-int CURSOR_MIN_Y;
-int CURSOR_MAX_Y;
-int BLOCK_MOVE_SPEED;
-int DRAW_OFFSET_X;
-int DRAW_OFFSET_Y;
+extern int ROWS;
+extern int COLS;
+extern int NUM_BLOCKS;
+extern int START_ROWS;
+extern int DISABLED_ROWS;
+extern int CURSOR_MAX_X;
+extern int CURSOR_MIN_Y;
+extern int CURSOR_MAX_Y;
+extern int BLOCK_MOVE_SPEED;
+extern int DRAW_OFFSET_X;
+extern int DRAW_OFFSET_Y;
 
 typedef struct Block{
     int x,y;
@@ -62,15 +62,15 @@ typedef struct Block{
     bool sound_after_move;
 }Block;
 
-Block **blocks;
-bool animating;
-int bump_timer;
-int bump_pixels;
-int speed;
-int speed_init;
-int speed_timer;
-int game_over_timer;
-bool jewels_cursor_select;
+extern Block **blocks;
+extern bool animating;
+extern int bump_timer;
+extern int bump_pixels;
+extern int speed;
+extern int speed_init;
+extern int speed_timer;
+extern int game_over_timer;
+extern bool jewels_cursor_select;
 
 void blockSet(int i, int j, bool alive, int color);
 void blockClear(int i, int j);