Skip to content

Commit

Permalink
Rename entities
Browse files Browse the repository at this point in the history
  • Loading branch information
seedee committed Jul 8, 2024
1 parent 8a8f1b2 commit 927200a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/sdhlt/sdHLVIS/vis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ int main(const int argc, char** argv)
}
}

else if (!strcmp (current_entity_classname, "info_room"))
else if (!strcmp (current_entity_classname, "info_portal"))
{
if (g_room_count < g_room_max)
{
Expand All @@ -1897,8 +1897,8 @@ int main(const int argc, char** argv)
{
const char* current_entity_classname_nested = ValueForKey (&g_entities[j], "classname");

// Find a `info_room_target` and check if its targetname matches our target
if (!strcmp (current_entity_classname_nested, "info_room_target")
// Find a `info_leaf` and check if its targetname matches our target
if (!strcmp (current_entity_classname_nested, "info_leaf")
&& !strcmp(ValueForKey (&g_entities[j], "targetname"), target))
{
vec3_t room_target_origin;
Expand All @@ -1912,7 +1912,7 @@ int main(const int argc, char** argv)

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

g_room_count++;
Expand Down
2 changes: 1 addition & 1 deletion src/sdhlt/sdHLVIS/vis.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ typedef struct
{
bool isoverviewpoint;
bool isskyboxpoint;
// For info_room
// For info_portal
std::vector<int> additional_leaves;
int neighbor;
}
Expand Down

0 comments on commit 927200a

Please sign in to comment.