mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 08:28:36 -07:00
fixes
This commit is contained in:
@@ -669,6 +669,7 @@ static void set_rq(u12_t rq, u4_t v)
|
|||||||
/* Instructions */
|
/* Instructions */
|
||||||
static void op_pset_cb(u8_t arg0, u8_t arg1)
|
static void op_pset_cb(u8_t arg0, u8_t arg1)
|
||||||
{
|
{
|
||||||
|
unused(arg1);
|
||||||
np = arg0;
|
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)
|
static void op_inc_mn_cb(u8_t arg0, u8_t arg1)
|
||||||
{
|
{
|
||||||
|
unused(arg1);
|
||||||
u8_t tmp;
|
u8_t tmp;
|
||||||
|
|
||||||
tmp = M(arg0) + 1;
|
tmp = M(arg0) + 1;
|
||||||
|
|||||||
@@ -1181,7 +1181,7 @@ static void tanks_game_init_game(TanksState* const tanks_state, GameState type)
|
|||||||
|
|
||||||
static bool
|
static bool
|
||||||
tanks_game_collision(Point const next_step, bool shoot, TanksState const* const tanks_state) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1533,6 +1533,7 @@ static void tanks_game_process_game_step(TanksState* const tanks_state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t tanks_game_app(void* p) {
|
int32_t tanks_game_app(void* p) {
|
||||||
|
unused(p);
|
||||||
srand(DWT->CYCCNT);
|
srand(DWT->CYCCNT);
|
||||||
|
|
||||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(TanksEvent));
|
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(TanksEvent));
|
||||||
|
|||||||
Reference in New Issue
Block a user