1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00

Minor fixes

This commit is contained in:
NFS_MONSTR 2018-05-19 17:47:27 +03:00
parent b019d187d6
commit 7d6bc6a22e
2 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@ ClumpPtr GameData::loadClump(const std::string& name) {
ClumpPtr GameData::loadClump(const std::string& name, const std::string& textureSlot) {
std::string currentSlot = currenttextureslot;
if (textureSlot.size()>0)
if (!textureSlot.empty())
currenttextureslot = textureSlot;
ClumpPtr result = loadClump(name);
currenttextureslot = currentSlot;

View File

@ -26,7 +26,7 @@
#include <iomanip>
#include <iostream>
std::map<GameRenderer::SpecialModel, std::pair<std::string,std::string>> kSpecialModels = {
const std::map<GameRenderer::SpecialModel, std::pair<std::string,std::string>> kSpecialModels = {
{GameRenderer::ZoneCylinderA, std::pair<std::string,std::string>("zonecyla.dff", "particle")},
{GameRenderer::ZoneCylinderB, std::pair<std::string,std::string>("zonecylb.dff", "particle")},
{GameRenderer::Arrow, std::pair<std::string,std::string>("arrow.dff", "")}};