- Joined
- Apr 1, 2012
- Messages
- 1,249
- Solutions
- 71
- Reaction score
- 621
- Location
- Hell
- GitHub
- idontreallywolf
It turns out that my previous solution for the same problem hasn't worked out that well.. There seem to be more than one or two NPCs that are walkable... so I've decided to read the part of cpp code where it check wether the NPC is walkable or not and I've been thinking if it would be a good choice to hard code that part so that all NPCs are non-walkable because It seems to be bad idea to open every .xml file and add walkalbe="0"...
LINE 205 npc.cpp
Q: Is it a good idea to hardcode line 206 ? 'walkable = 0'
to :
LINE 205 npc.cpp
Q: Is it a good idea to hardcode line 206 ? 'walkable = 0'
Code:
if(readXMLString(root, "walkable", strValue))
walkable = booleanString(strValue);
to :
Code:
if(readXMLString(root, "walkable", strValue))
walkable = 0;