mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
Minor fixes
This commit is contained in:
parent
b019d187d6
commit
7d6bc6a22e
@ -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;
|
||||
|
@ -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", "")}};
|
||||
|
Loading…
Reference in New Issue
Block a user