Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] room not being printed properly on quit (with quit_game function) #30

Closed
dreais opened this issue Oct 8, 2019 · 2 comments
Closed
Assignees
Labels
bug Something isn't working no-priority No priority level - this issue is not planned but could priority-l-3 Priority level 3

Comments

@dreais
Copy link
Owner

dreais commented Oct 8, 2019

not a big bug but when we try to quit and get back in the game, 2 minors issue

  1. it does not stop the game, resuming it will make enemies move.
  2. the room is not being printed properly until players/monsters move for some lines/cols

i don't have a resolution nor a suggestion for now, since the print is AFTER the quit condition. i don't know why it happens

not a big priority since this is a late resolution

@dreais dreais added bug Something isn't working priority-l-3 Priority level 3 no-priority No priority level - this issue is not planned but could labels Oct 8, 2019
@dreais dreais self-assigned this Oct 8, 2019
@dreais
Copy link
Owner Author

dreais commented Oct 8, 2019

suggested
adding the line "do you wish to exit" in the logs instead.
see df950ff

void print_logs(core_game_t *core)
{
unsigned int count = core->logs.index;
for (unsigned int i = 0; i < core->logs.index; i++) {
wmove(core->logs.logs, i, 0);
wprintw(core->logs.logs, "%s", core->logs.buffer[count--]);
}
wrefresh(core->logs.logs);
if (core->logs.index == core->logs.buffer_size - 1) {
core->logs.index--;
}
}

@dreais
Copy link
Owner Author

dreais commented Oct 16, 2019

it may be a pdcurses issue since i don't have it anymore on fedora 29. closing (for now) until the need arises

@dreais dreais closed this as completed Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-priority No priority level - this issue is not planned but could priority-l-3 Priority level 3
Projects
None yet
Development

No branches or pull requests

1 participant