void EventLoop(void)
{
- while(1)
+ while (1)
{
if (PendingEvent()) /* got event */
{
/* simulate key release events for still pressed keys */
key_joystick_mapping = 0;
- for (i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
stored_player[i].action = 0;
}
KeyboardAutoRepeatOn();
- while(window_unmapped)
+ while (window_unmapped)
{
Event event;
break;
case GAME_MODE_INFO:
- HandleHelpScreen(button);
+ HandleInfoScreen(button);
break;
case GAME_MODE_SETUP:
printf(" Feld[%d][%d] == %d ('%s')\n", x,y, Feld[x][y],
element_info[Feld[x][y]].token_name);
+ printf(" Back[%d][%d] == %d\n", x,y, Back[x][y]);
printf(" Store[%d][%d] == %d\n", x,y, Store[x][y]);
printf(" Store2[%d][%d] == %d\n", x,y, Store2[x][y]);
printf(" StorePlayer[%d][%d] == %d\n", x,y, StorePlayer[x][y]);
printf(" ChangeDelay[%d][%d] == %d\n", x,y, ChangeDelay[x][y]);
printf(" GfxElement[%d][%d] == %d\n", x,y, GfxElement[x][y]);
printf(" GfxAction[%d][%d] == %d\n", x,y, GfxAction[x][y]);
+ printf(" GfxFrame[%d][%d] == %d\n", x,y, GfxFrame[x][y]);
printf("\n");
}
}
static boolean bomb_placed[MAX_PLAYERS] = { FALSE,FALSE,FALSE,FALSE };
int pnr;
- for (pnr=0; pnr<MAX_PLAYERS; pnr++)
+ for (pnr = 0; pnr < MAX_PLAYERS; pnr++)
{
int i;
byte key_action = 0;
custom_key = setup.input[pnr].key;
- for (i=0; i<6; i++)
+ for (i = 0; i < 6; i++)
if (key == *key_info[i].key_custom)
key_action |= key_info[i].action;
{
int i;
- for (i=0; i<6; i++)
+ for (i = 0; i < 6; i++)
if (key == key_info[i].key_default)
joy |= key_info[i].action;
}
break;
case GAME_MODE_INFO:
- HandleHelpScreen(MB_RELEASED);
+ HandleInfoScreen(MB_RELEASED);
break;
case GAME_MODE_SCORES:
{
int i;
- for (i=0; i < MAX_INVENTORY_SIZE; i++)
+ for (i = 0; i < MAX_INVENTORY_SIZE; i++)
if (local_player->inventory_size < MAX_INVENTORY_SIZE)
local_player->inventory_element[local_player->inventory_size++] =
EL_DYNAMITE;
{
int i;
- for(i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
{
printf("Player %d:\n", i);
printf(" jx == %d, jy == %d\n",
int i;
int result = 0;
- for (i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
{
byte joy_action = 0;
break;
case GAME_MODE_INFO:
- HandleHelpScreen(!newbutton);
+ HandleInfoScreen(!newbutton);
break;
case GAME_MODE_EDITOR: