Mercurial > molko
comparison libmlk-rpg/rpg/battle-state-attacking.c @ 298:196264679079
misc: remove usage of bool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Mar 2021 18:49:08 +0100 |
parents | 6367b976112d |
children | d01e83210ca2 |
comparison
equal
deleted
inserted
replaced
297:6151152d009c | 298:196264679079 |
---|---|
66 target->ch->hp = 0; | 66 target->ch->hp = 0; |
67 | 67 |
68 battle_indicator_hp(bt, target->ch, 50); | 68 battle_indicator_hp(bt, target->ch, 50); |
69 } | 69 } |
70 | 70 |
71 static bool | 71 static int |
72 update(struct battle_state *st, struct battle *bt, unsigned int ticks) | 72 update(struct battle_state *st, struct battle *bt, unsigned int ticks) |
73 { | 73 { |
74 (void)bt; | 74 (void)bt; |
75 (void)ticks; | 75 (void)ticks; |
76 | 76 |
77 struct data *data = st->data; | 77 struct data *data = st->data; |
78 | 78 |
79 if (!battle_entity_update(data->source, 0)) | 79 if (!battle_entity_update(data->source, 0)) |
80 return false; | 80 return 0; |
81 | 81 |
82 switch (data->substate) { | 82 switch (data->substate) { |
83 case SUBSTATE_ADVANCING: | 83 case SUBSTATE_ADVANCING: |
84 /* | 84 /* |
85 * Current entity state is battle-entity-state-moving but it is | 85 * Current entity state is battle-entity-state-moving but it is |
105 break; | 105 break; |
106 default: | 106 default: |
107 break; | 107 break; |
108 } | 108 } |
109 | 109 |
110 return false; | 110 return 0; |
111 } | 111 } |
112 | 112 |
113 static void | 113 static void |
114 finish(struct battle_state *st, struct battle *bt) | 114 finish(struct battle_state *st, struct battle *bt) |
115 { | 115 { |