Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelton committed Mar 12, 2024
1 parent 0ca3192 commit 318c8ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
12 changes: 1 addition & 11 deletions src/Engine/Events/EventMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,7 @@ void EventMap::dump(int eventId) const {
if (events) {
logger->trace("Event: {}", eventId);
for (const EventIR &ir : *events) {
// TODO(pskelton): I have no idea why this has become an issue - hacky workaround for now
std::string eventString = ir.toString();
std::string find = ""; // spdlog falls over on these
std::string replace = "...";
auto pos = eventString.find(find);
while (pos != std::string::npos) {
eventString.replace(pos, find.size(), replace);
pos = eventString.find(find, pos + replace.size());
}

logger->trace("{}", eventString);
logger->trace("{}", ir.toString());
}
} else {
logger->trace("Event {} not found", eventId);
Expand Down
6 changes: 2 additions & 4 deletions src/Engine/Graphics/Indoor.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,8 @@ struct IndoorLocation {
}

/**
* @param sX X coordinate.
* @param sY Y coordinate.
* @param sZ Z coordinate.
* @return Sector id at (X,Y,Z), or zero if (X,Y,Z) is outside the level bounds.
* @param pos Vec3f coordinates.
* @return Sector id at pos, or zero if pos is outside the level bounds.
*/
int GetSector(const Vec3f& pos);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class PlatformApplicationAware {

template<class T>
T *component() {
if (!_application) __debugbreak();
assert(_application); // Should be installed.
return _componentStorage->require<T>();
}
Expand Down

0 comments on commit 318c8ae

Please sign in to comment.