Some cleanup
This commit is contained in:
@@ -83,23 +83,16 @@ void init_graph_tool(){
|
||||
delete[] vbuf;
|
||||
} while(false);
|
||||
int i;
|
||||
// TODO: The duplication of location here shouldn't be necessary
|
||||
static const location pat_offs[17] = {
|
||||
location{0,3}, location{1,1}, location{2,1}, location{2,0},
|
||||
location{3,0}, location{3,1}, location{1,3}, location{0,0},
|
||||
location{0,2}, location{1,2}, location{0,1}, location{2,2},
|
||||
location{2,3}, location{3,2}, location{1,0}, location{4,0}, location{3,3}
|
||||
{0,3}, {1,1}, {2,1}, {2,0},
|
||||
{3,0}, {3,1}, {1,3}, {0,0},
|
||||
{0,2}, {1,2}, {0,1}, {2,2},
|
||||
{2,3}, {3,2}, {1,0}, {4,0}, {3,3}
|
||||
};
|
||||
static const int pat_i[17] = {
|
||||
2, 3, 4, 5, 6, 8, 9, 10,
|
||||
11,12,13,14,15,16,17,19,20
|
||||
};
|
||||
static const int map_i[26] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 9,
|
||||
10,11,12,13,14,15,16,17,
|
||||
18,19,20,21,22,24,25,27,
|
||||
28,29
|
||||
};
|
||||
for(i = 0; i < 17; i++){
|
||||
bg_rects[pat_i[i]] = {0,0,64,64};
|
||||
bg_rects[pat_i[i]].offset(64 * pat_offs[i].x,64 * pat_offs[i].y);
|
||||
|
Reference in New Issue
Block a user