Skip to content

Commit

Permalink
Fixed really strange and bad issue...
Browse files Browse the repository at this point in the history
  • Loading branch information
Karaulov committed Nov 24, 2022
1 parent e66e99e commit a42e4ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/bsp/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Entity::Entity(const std::string& classname)
addKeyvalue("classname", classname);
}

void Entity::addKeyvalue(const std::string& key, const std::string& value, bool multisupport)
void Entity::addKeyvalue(const std::string key, const std::string value, bool multisupport)
{
int dup = 1;
if (keyvalues.find(key) == keyvalues.end())
Expand Down Expand Up @@ -63,7 +63,7 @@ void Entity::setOrAddKeyvalue(const std::string& key, const std::string& value)
addKeyvalue(key, value);
}

void Entity::removeKeyvalue(const std::string& key)
void Entity::removeKeyvalue(const std::string key)
{
if (!hasKey(key))
return;
Expand Down Expand Up @@ -117,7 +117,7 @@ void Entity::clearEmptyKeyvalues()
targetsCached = false;
}

bool Entity::hasKey(const std::string& key)
bool Entity::hasKey(const std::string key)
{
return keyvalues.find(key) != keyvalues.end() && std::find(keyOrder.begin(), keyOrder.end(), key) != keyOrder.end();
}
Expand Down
6 changes: 3 additions & 3 deletions src/bsp/Entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Entity
Entity(const std::string& classname);
~Entity(void) = default;

void addKeyvalue(const std::string& key, const std::string& value, bool multisupport = false);
void removeKeyvalue(const std::string& key);
void addKeyvalue(const std::string key, const std::string value, bool multisupport = false);
void removeKeyvalue(const std::string key);
bool renameKey(int idx, const std::string& newName);
void clearAllKeyvalues();
void clearEmptyKeyvalues();
Expand All @@ -34,7 +34,7 @@ class Entity

vec3 getOrigin();

bool hasKey(const std::string& key);
bool hasKey(const std::string key);

std::vector<std::string> getTargets();

Expand Down

0 comments on commit a42e4ed

Please sign in to comment.