if (lev.killed_out_of_time && setup.time_limit)
return TRUE;
- switch(cave[x][y-1])
+ switch (cave[x][y-1])
{
case Xbug_1_n:
case Xbug_1_e:
return TRUE;
}
- switch(cave[x+1][y])
+ switch (cave[x+1][y])
{
case Xbug_1_n:
case Xbug_1_e:
return TRUE;
}
- switch(cave[x][y+1])
+ switch (cave[x][y+1])
{
case Xbug_1_n:
case Xbug_1_e:
return TRUE;
}
- switch(cave[x-1][y])
+ switch (cave[x-1][y])
{
case Xbug_1_n:
case Xbug_1_e:
return TRUE;
}
- switch(cave[x][y])
+ switch (cave[x][y])
{
case Xblank:
case Xacid_splash_e:
ply->alive = 0;
- switch(cave[x][y-1])
+ switch (cave[x][y-1])
{
case Xbug_1_n:
case Xbug_1_e:
break;
}
- switch(cave[x+1][y])
+ switch (cave[x+1][y])
{
case Xbug_1_n:
case Xbug_1_e:
break;
}
- switch(cave[x][y+1])
+ switch (cave[x][y+1])
{
case Xbug_1_n:
case Xbug_1_e:
break;
}
- switch(cave[x-1][y])
+ switch (cave[x-1][y])
{
case Xbug_1_n:
case Xbug_1_e:
break;
}
- switch(cave[x][y])
+ switch (cave[x][y])
{
case Xexit_1:
case Xexit_2:
break;
}
- switch(cave[x][y])
+ switch (cave[x][y])
{
#ifdef USE_CHANGED_ACID_STUFF
case Xacid_1:
{
int element = cave[x][y];
- switch(cave[x][y])
+ switch (cave[x][y])
{
/* fire is released */
case Xblank:
if (dy)
break;
- switch(cave[x+dx][y])
+ switch (cave[x+dx][y])
{
case Xblank:
case Xacid_splash_e:
if (dy)
break;
- switch(cave[x+dx][y])
+ switch (cave[x+dx][y])
{
case Xblank:
case Xacid_splash_e:
if (dy)
break;
- switch(cave[x+dx][y])
+ switch (cave[x+dx][y])
{
case Xblank:
case Xacid_splash_e:
if (dy)
break;
- switch(cave[x+dx][y])
+ switch (cave[x+dx][y])
{
case Xblank:
case Xacid_splash_e:
break;
case Xballoon:
- switch(cave[x+dx][y+dy])
+ switch (cave[x+dx][y+dy])
{
case Xblank:
case Xacid_splash_e:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- switch(cave[x+dx][y+dy])
+ switch (cave[x+dx][y+dy])
{
case Xblank:
case Xacid_splash_e:
{
int element = cave[x][y];
- switch(cave[x][y])
+ switch (cave[x][y])
{
/* fire is pressed */
{ MV_LEFT, MV_RIGHT, MV_UP, MV_DOWN }
};
- switch(element)
+ switch (element)
{
case EL_PACMAN_RIGHT:
case EL_PACMAN_UP:
DrawLaser(0, DL_LASER_ENABLED);
#endif
- switch(element)
+ switch (element)
{
case EL_KETTLE:
mode = EX_KETTLE;
void RaiseScoreElement_MM(int element)
{
- switch(element)
+ switch (element)
{
case EL_PACMAN:
case EL_PACMAN_RIGHT:
};
static int num_properties = sizeof(ep_num) / sizeof(int *);
- for(i = 0; i < MAX_ELEMENTS; i++)
+ for (i = 0; i < MAX_ELEMENTS; i++)
Elementeigenschaften[i] = 0;
- for(i = 0; i < num_properties; i++)
- for(j = 0; j < *(ep_num[i]); j++)
+ for (i = 0; i < num_properties; i++)
+ for (j = 0; j < *(ep_num[i]); j++)
Elementeigenschaften[(ep_array[i])[j]] |= ep_bit[i];
- for(i = EL_CHAR_START; i <= EL_CHAR_END; i++)
+ for (i = EL_CHAR_START; i <= EL_CHAR_END; i++)
Elementeigenschaften[i] |= (EP_BIT_CHAR | EP_BIT_INACTIVE);
- for(i = EL_WALL_START; i <= EL_WALL_END; i++)
+ for (i = EL_WALL_START; i <= EL_WALL_END; i++)
Elementeigenschaften[i] |= EP_BIT_WALL;
}
{
int x, y;
- for(x = 0; x < size_x; x++)
- for(y = 0; y < size_y; y++)
+ for (x = 0; x < size_x; x++)
+ for (y = 0; y < size_y; y++)
DrawMiniElementOrWall_MM(x, y, scroll_x, scroll_y);
redraw_mask |= REDRAW_FIELD;
while (tag != GDI_END)
{
- switch(tag)
+ switch (tag)
{
case GDI_IMAGE_ID:
gi->image_id = va_arg(ap, int);
{
int i;
- for(i = 0; i < bytes; i++)
+ for (i = 0; i < bytes; i++)
fputc(buffer[i], file);
}
void HandleJoystickEvent(Event *event)
{
- switch(event->type)
+ switch (event->type)
{
case SDL_CONTROLLERDEVICEADDED:
#if DEBUG_JOYSTICKS
{
KeyMod new_modifier = KMOD_None;
- switch(key)
+ switch (key)
{
case KSYM_Shift_L:
new_modifier = KMOD_Shift_L;
Error(ERR_EXIT, "SDLNet_AllocSocketSet() failed: %s"), SDLNet_GetError();
udp = SDLNet_UDP_Open(0);
- if(!udp)
+ if (!udp)
Error(ERR_EXIT, "SDLNet_UDP_Open() failed: %s", SDLNet_GetError());
if (SDLNet_UDP_AddSocket(udp_socket_set, udp) == -1)