/*
Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
char* text = new char[maxlength];
for (m = 0; m < templength; m++) {
funpackf(tfile, "Bb", &text[m]);
- if (text[m] == '\0')
+ if (text[m] == '\0') {
break;
+ }
}
text[m] = 0;
std::string result(text);
funpackf(tfile, "Bi", &participantfocus);
funpackf(tfile, "Bi", &participantaction);
- for (int m = 0; m < 10; m++)
+ for (int m = 0; m < 10; m++) {
funpackf(tfile, "Bf Bf Bf", &participantfacing[m].x, &participantfacing[m].y, &participantfacing[m].z);
+ }
funpackf(tfile, "Bf Bf", &camerayaw, &camerapitch);
}
ipstream.ignore(256, ' ');
getline(ipstream, text);
for (int j = 0; j < 128; j++) {
- if (text[j] == '\\')
+ if (text[j] == '\\') {
text[j] = '\n';
+ }
}
ipstream.ignore(256, ':');
ipstream >> sound;
fpackf(tfile, "Bi", participantfocus);
fpackf(tfile, "Bi", participantaction);
- for (int m = 0; m < 10; m++)
+ for (int m = 0; m < 10; m++) {
fpackf(tfile, "Bf Bf Bf", participantfacing[m].x, participantfacing[m].y, participantfacing[m].z);
+ }
fpackf(tfile, "Bf Bf", camerayaw, camerapitch);
}