Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nodeValue = (char*)xmlGetProp(tmp, (const xmlChar *)"exhaustion");
- if(nodeValue) {
- exhaustionTicks = atoi(nodeValue)*1.5;
- xmlFreeOTSERV(nodeValue);
- }
- nodeValue = (char*)xmlGetProp(tmp, (const xmlChar *)"cycleticks");
- if(nodeValue){
- cycleTicks = atoi(nodeValue)*1.5;
- xmlFreeOTSERV(nodeValue);
- }
- nodeValue = (char*)xmlGetProp(tmp, (const xmlChar *)"probability");
- if(nodeValue){
- probability = atoi(nodeValue)*0.75;
- xmlFreeOTSERV(nodeValue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement