This commit is contained in:
RogueMaster
2022-09-16 19:57:26 -04:00
parent 6169598b48
commit 36333f4a72
2 changed files with 4 additions and 1 deletions

View File

@@ -669,6 +669,7 @@ static void set_rq(u12_t rq, u4_t v)
/* Instructions */
static void op_pset_cb(u8_t arg0, u8_t arg1)
{
unused(arg1);
np = arg0;
}
@@ -1477,6 +1478,7 @@ static void op_rrc_cb(u8_t arg0, u8_t arg1)
static void op_inc_mn_cb(u8_t arg0, u8_t arg1)
{
unused(arg1);
u8_t tmp;
tmp = M(arg0) + 1;

View File

@@ -1181,7 +1181,7 @@ static void tanks_game_init_game(TanksState* const tanks_state, GameState type)
static bool
tanks_game_collision(Point const next_step, bool shoot, TanksState const* const tanks_state) {
if(next_step.x < 0 || next_step.y < 0) {
if((int8_t) next_step.x < 0 || (int8_t) next_step.y < 0) {
return true;
}
@@ -1533,6 +1533,7 @@ static void tanks_game_process_game_step(TanksState* const tanks_state) {
}
int32_t tanks_game_app(void* p) {
unused(p);
srand(DWT->CYCCNT);
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(TanksEvent));