Skip to content

Commit

Permalink
remove stupid comment and add helpful warning
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Apr 3, 2024
1 parent 0c70ba9 commit 4acf7eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/sdhlt/sdHLVIS/vis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1853,8 +1853,7 @@ int main(const int argc, char** argv)
continue;
}

// If we have room 0 and target 0, don't calculate.
g_room[g_room_count].target_visleafnum = 0;
bool has_target = false;

// Find the target entity.
// Rewalk yes, very sad.
Expand All @@ -1871,10 +1870,15 @@ int main(const int argc, char** argv)
GetVectorForKey (&g_entities[j], "origin", room_target_origin);
g_room[g_room_count].target_visleafnum = VisLeafnumForPoint (room_target_origin);

printf("target leave %d", g_room[g_room_count].target_visleafnum);
has_target = true;
}
}

if (!has_target)
{
Warning("Entity %d (info_room) does not have a target.", i);
}

g_room_count++;
}
}
Expand Down

0 comments on commit 4acf7eb

Please sign in to comment.