edit undo + redo + game_new_ext
This commit is contained in:
1 parent
05516d6864
commit
7cbf8776cc
2 files changed
+12
-6
No files matched your search
@@ -30,7 +30,7 @@ game game_new_empty(void) {
|
||||
g->wrapping = false;
|
||||
g->height = DEFAULT_SIZE;
|
||||
g->width = DEFAULT_SIZE;
|
||||
g->hist = NULL;
|
||||
g->hist = history_create_empty();
|
||||
// alloc the tab with variables set before
|
||||
g->tab_cell = (square**)malloc(sizeof(square*) * g->height);
|
||||
if (g->tab_cell == NULL) {
|
||||
@@ -47,6 +47,7 @@ game game_new_empty(void) {
|
||||
g->tab_cell[i][j] = S_BLANK;
|
||||
}
|
||||
}
|
||||
g->hist = history_insert_first(g->hist,F_ERROR,0,0);
|
||||
return g;
|
||||
}
|
||||
// TODO
|
||||
|
||||
Reference in new issue
Block a user