mirror of
https://git.zap.org.au/git/trader.git
synced 2024-11-03 17:27:29 -05:00
Revert a previous change: we know how large is the window we opened!
This commit is contained in:
parent
78cac96e4a
commit
9ef1181c05
@ -173,7 +173,7 @@ bool load_game (int num)
|
|||||||
center(curwin, 3, ATTR_ERROR_HIGHLIGHT,
|
center(curwin, 3, ATTR_ERROR_HIGHLIGHT,
|
||||||
"Game %d has not been saved to disk", num);
|
"Game %d has not been saved to disk", num);
|
||||||
|
|
||||||
wait_for_key(curwin, getmaxy(curwin) - 2, ATTR_ERROR_WAITFORKEY);
|
wait_for_key(curwin, 5, ATTR_ERROR_WAITFORKEY);
|
||||||
deltxwin();
|
deltxwin();
|
||||||
} else {
|
} else {
|
||||||
// Some other file error
|
// Some other file error
|
||||||
@ -187,7 +187,7 @@ bool load_game (int num)
|
|||||||
center(curwin, 5, ATTR_ERROR_NORMAL, "File %s: %s", filename,
|
center(curwin, 5, ATTR_ERROR_NORMAL, "File %s: %s", filename,
|
||||||
strerror(saved_errno));
|
strerror(saved_errno));
|
||||||
|
|
||||||
wait_for_key(curwin, getmaxy(curwin) - 2, ATTR_ERROR_WAITFORKEY);
|
wait_for_key(curwin, 7, ATTR_ERROR_WAITFORKEY);
|
||||||
deltxwin();
|
deltxwin();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -342,7 +342,7 @@ bool save_game (int num)
|
|||||||
center(curwin, 5, ATTR_ERROR_NORMAL, "Directory %s: %s",
|
center(curwin, 5, ATTR_ERROR_NORMAL, "Directory %s: %s",
|
||||||
data_dir, strerror(saved_errno));
|
data_dir, strerror(saved_errno));
|
||||||
|
|
||||||
wait_for_key(curwin, getmaxy(curwin) - 2, ATTR_ERROR_WAITFORKEY);
|
wait_for_key(curwin, 7, ATTR_ERROR_WAITFORKEY);
|
||||||
deltxwin();
|
deltxwin();
|
||||||
|
|
||||||
free(buf);
|
free(buf);
|
||||||
@ -367,7 +367,7 @@ bool save_game (int num)
|
|||||||
center(curwin, 5, ATTR_ERROR_NORMAL, "File %s: %s", filename,
|
center(curwin, 5, ATTR_ERROR_NORMAL, "File %s: %s", filename,
|
||||||
strerror(saved_errno));
|
strerror(saved_errno));
|
||||||
|
|
||||||
wait_for_key(curwin, getmaxy(curwin) - 2, ATTR_ERROR_WAITFORKEY);
|
wait_for_key(curwin, 7, ATTR_ERROR_WAITFORKEY);
|
||||||
deltxwin();
|
deltxwin();
|
||||||
|
|
||||||
free(buf);
|
free(buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user