mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 19:16:44 +01:00
fix compiler warning
This commit is contained in:
parent
4c8311d9fa
commit
5969971fbc
1 changed files with 15 additions and 15 deletions
|
@ -156,7 +156,7 @@ bool GenerateObstracles(struct Game *game, struct TM_Action *action, enum TM_Act
|
||||||
obst->speed = 0;
|
obst->speed = 0;
|
||||||
obst->bitmap = &(game->level.obst_bmps.pie);
|
obst->bitmap = &(game->level.obst_bmps.pie);
|
||||||
obst->callback = NULL;
|
obst->callback = NULL;
|
||||||
obst->data = rand()%2;
|
obst->data = (void*)(rand()%2);
|
||||||
if (rand()%100<=50) obst->callback=Obst_MoveUpDown;
|
if (rand()%100<=50) obst->callback=Obst_MoveUpDown;
|
||||||
if (game->level.obstracles) {
|
if (game->level.obstracles) {
|
||||||
game->level.obstracles->prev = obst;
|
game->level.obstracles->prev = obst;
|
||||||
|
|
Loading…
Reference in a new issue