Mercurial > molko
comparison libmlk-adventure/adventure/state/splashscreen.c @ 282:a15f77eda9a4
adventure: rename functions
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 20 Dec 2020 11:04:41 +0100 |
parents | cd5bdb995052 |
children | 196264679079 |
comparison
equal
deleted
inserted
replaced
281:87b8c7510717 | 282:a15f77eda9a4 |
---|---|
73 struct self *self = state->data; | 73 struct self *self = state->data; |
74 | 74 |
75 self->elapsed += ticks; | 75 self->elapsed += ticks; |
76 | 76 |
77 if (self->elapsed >= DELAY) | 77 if (self->elapsed >= DELAY) |
78 game_switch(mainmenu_state_new(), false); | 78 game_switch(state_mainmenu_new(), false); |
79 } | 79 } |
80 | 80 |
81 static void | 81 static void |
82 draw(struct state *state) | 82 draw(struct state *state) |
83 { | 83 { |
98 | 98 |
99 free(self); | 99 free(self); |
100 } | 100 } |
101 | 101 |
102 struct state * | 102 struct state * |
103 splashscreen_state_new(void) | 103 state_splashscreen_new(void) |
104 { | 104 { |
105 struct self *self; | 105 struct self *self; |
106 | 106 |
107 self = alloc_new0(sizeof (*self)); | 107 self = alloc_new0(sizeof (*self)); |
108 self->state.data = self; | 108 self->state.data = self; |