Browse Source

Merge pull request #869 from AJenbo/SkipThemeRoom

Clean up SkipThemeRoom
pull/88/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
6be10be816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 27
      Source/gendung.cpp

27
Source/gendung.cpp

@ -1107,26 +1107,15 @@ void DRLG_HoldThemeRooms()
BOOL SkipThemeRoom(int x, int y)
{
int i; // ebx
THEME_LOC *v3; // eax
int v4; // esi
i = 0;
if (themeCount <= 0)
return 1;
v3 = themeLoc;
while (1) {
if (x >= v3->x - 2 && x <= v3->x + v3->width + 2) {
v4 = v3->y;
if (y >= v4 - 2 && y <= v4 + v3->height + 2)
break;
}
++i;
++v3;
if (i >= themeCount)
return 1;
int i;
for (i = 0; i < themeCount; i++) {
if (x >= themeLoc[i].x - 2 && x <= themeLoc[i].x + themeLoc[i].width + 2
&& y >= themeLoc[i].y - 2 && y <= themeLoc[i].y + themeLoc[i].height + 2)
return 0;
}
return 0;
return 1;
}
void InitLevels()

Loading…
Cancel
Save