deleting walls
This commit is contained in:
parent
b7b8bd8b1e
commit
edbe4eb8ae
5 changed files with 22 additions and 0 deletions
|
|
@ -111,6 +111,16 @@ struct kubo_wall *kubo_context_get_pending_wall(struct kubo_context *context) {
|
|||
return wall;
|
||||
}
|
||||
|
||||
void kubo_context_delete_wall(struct kubo_context *context) {
|
||||
if (context->state.id != KUBO_CONTEXT_WALL_SELECT ||
|
||||
!context->walls.count) {
|
||||
return;
|
||||
}
|
||||
|
||||
kubo_wall_arr_del(&context->walls, context->wall_select_index);
|
||||
kubo_context_select_next_wall(context);
|
||||
}
|
||||
|
||||
void kubo_context_select_next_wall(struct kubo_context *context) {
|
||||
if (context->state.id != KUBO_CONTEXT_WALL_SELECT ||
|
||||
!context->walls.count) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue