Browse Source

Clang-tidy: readability-redundant-control-flow

pull/2243/head
Anders Jenbo 5 years ago
parent
commit
f4f8f22699
  1. 1
      Source/dx.cpp
  2. 2
      Source/items.cpp
  3. 1
      Source/missiles.cpp

1
Source/dx.cpp

@ -236,7 +236,6 @@ void Blit(SDL_Surface *src, SDL_Rect *src_rect, SDL_Rect *dst_rect)
#ifndef USE_SDL1
if (SDL_BlitSurface(src, src_rect, dst, dst_rect) < 0)
ErrSdl();
return;
#else
if (!OutputRequiresScaling()) {
if (SDL_BlitSurface(src, src_rect, dst, dst_rect) < 0)

2
Source/items.cpp

@ -2442,8 +2442,6 @@ void SpawnUnique(_unique_items uid, Point position)
GetItemAttrs(ii, idx, curlv);
GetUniqueItem(ii, uid);
SetupItem(ii);
return;
}
void ItemRndDur(int ii)

1
Source/missiles.cpp

@ -3067,7 +3067,6 @@ static int Sentfire(int i, Point src)
void MI_Dummy(int i)
{
return;
}
void MI_Golem(int i)

Loading…
Cancel
Save