Refactoring some of the poker game logic again.
This commit is contained in:
@ -10,13 +10,18 @@
|
||||
void _vnConversationTalkStart(queue_t *queue,queueaction_t *action,uint8_t i) {
|
||||
vnconversationitemdata_t *data;
|
||||
data = (vnconversationitemdata_t *)action->data;
|
||||
|
||||
vnTextBoxSetText(&data->conversation->textbox, data->text);
|
||||
if(data->character != NULL) data->character->talking = true;
|
||||
|
||||
if(data->character != NULL) {
|
||||
data->character->talking = true;
|
||||
}
|
||||
}
|
||||
|
||||
void _vnConversationTalkUpdate(queue_t *queue,queueaction_t *action,uint8_t i) {
|
||||
vnconversationitemdata_t *data;
|
||||
data = (vnconversationitemdata_t *)action->data;
|
||||
|
||||
if(data->conversation->textbox.state & VN_TEXTBOX_STATE_CLOSED) {
|
||||
if(data->character != NULL) data->character->talking = false;
|
||||
queueNext(queue);
|
||||
|
Reference in New Issue
Block a user