Line
Link Here
|
0 |
-- btanks-0.7.5800.orig/mrt/udp_socket.cpp |
0 |
++ btanks-0.7.5800/mrt/udp_socket.cpp |
Lines 22-27
Link Here
|
22 |
# endif |
22 |
# endif |
23 |
#endif |
23 |
#endif |
24 |
|
24 |
|
|
|
25 |
#include <cstring> |
25 |
|
26 |
|
26 |
using namespace mrt; |
27 |
using namespace mrt; |
27 |
|
28 |
|
28 |
-- btanks-0.7.5800.orig/mrt/sys_socket.cpp |
29 |
++ btanks-0.7.5800/mrt/sys_socket.cpp |
Lines 27-32
Link Here
|
27 |
# include <unistd.h> |
27 |
# include <unistd.h> |
28 |
#endif |
28 |
#endif |
29 |
|
29 |
|
|
|
30 |
#include <cstring> |
30 |
|
31 |
|
31 |
using namespace mrt; |
32 |
using namespace mrt; |
32 |
|
33 |
|
33 |
-- btanks-0.7.5800.orig/mrt/lang.cpp |
34 |
++ btanks-0.7.5800/mrt/lang.cpp |
Lines 8-13
Link Here
|
8 |
#include "lang.h" |
8 |
#include "lang.h" |
9 |
#include "logger.h" |
9 |
#include "logger.h" |
10 |
|
10 |
|
|
|
11 |
#include <cstdlib> |
12 |
#include <cstring> |
13 |
|
11 |
const std::string mrt::getLanguageCode() { |
14 |
const std::string mrt::getLanguageCode() { |
12 |
#ifdef WIN32 |
15 |
#ifdef WIN32 |
13 |
LANGID lang_id = GetUserDefaultLangID(); |
16 |
LANGID lang_id = GetUserDefaultLangID(); |
14 |
-- btanks-0.7.5800.orig/mrt/serializator.cpp |
17 |
++ btanks-0.7.5800/mrt/serializator.cpp |
Lines 31-36
Link Here
|
31 |
#include <limits.h> |
31 |
#include <limits.h> |
32 |
#include "exception.h" |
32 |
#include "exception.h" |
33 |
|
33 |
|
|
|
34 |
#include <cstring> |
35 |
|
34 |
#ifdef WIN32 |
36 |
#ifdef WIN32 |
35 |
# ifndef uint32_t |
37 |
# ifndef uint32_t |
36 |
# define uint32_t unsigned __int32 |
38 |
# define uint32_t unsigned __int32 |
37 |
-- btanks-0.7.5800.orig/menu/menu_config.cpp |
39 |
++ btanks-0.7.5800/menu/menu_config.cpp |
Lines 24-29
Link Here
|
24 |
#include "mrt/b64.h" |
24 |
#include "mrt/b64.h" |
25 |
#include "config.h" |
25 |
#include "config.h" |
26 |
|
26 |
|
|
|
27 |
#include <cstring> |
28 |
|
27 |
IMPLEMENT_SINGLETON(MenuConfig, IMenuConfig); |
29 |
IMPLEMENT_SINGLETON(MenuConfig, IMenuConfig); |
28 |
|
30 |
|
29 |
void SlotConfig::serialize(mrt::Serializator &s) const { |
31 |
void SlotConfig::serialize(mrt::Serializator &s) const { |
30 |
-- btanks-0.7.5800.orig/src/i18n.cpp |
32 |
++ btanks-0.7.5800/src/i18n.cpp |
Lines 20-25
Link Here
|
20 |
#include "mrt/exception.h" |
20 |
#include "mrt/exception.h" |
21 |
#include <assert.h> |
21 |
#include <assert.h> |
22 |
|
22 |
|
|
|
23 |
#include <cstring> |
24 |
|
23 |
IMPLEMENT_SINGLETON(I18n, II18n); |
25 |
IMPLEMENT_SINGLETON(I18n, II18n); |
24 |
|
26 |
|
25 |
bool lessnocase::operator()(const std::string& s1, const std::string& s2) const { |
27 |
bool lessnocase::operator()(const std::string& s1, const std::string& s2) const { |
26 |
-- btanks-0.7.5800.orig/src/var.cpp |
28 |
++ btanks-0.7.5800/src/var.cpp |
Lines 21-26
Link Here
|
21 |
#include "mrt/serializator.h" |
21 |
#include "mrt/serializator.h" |
22 |
#include <assert.h> |
22 |
#include <assert.h> |
23 |
|
23 |
|
|
|
24 |
#include <cstdlib> |
25 |
|
24 |
void Var::serialize(mrt::Serializator &s) const { |
26 |
void Var::serialize(mrt::Serializator &s) const { |
25 |
if (type.empty()) |
27 |
if (type.empty()) |
26 |
throw_ex(("cannot serialize empty variable")); |
28 |
throw_ex(("cannot serialize empty variable")); |
27 |
-- btanks-0.7.5800.orig/objects/trooper.cpp |
29 |
++ btanks-0.7.5800/objects/trooper.cpp |
Lines 24-29
Link Here
|
24 |
#include "config.h" |
24 |
#include "config.h" |
25 |
#include "trooper.h" |
25 |
#include "trooper.h" |
26 |
|
26 |
|
|
|
27 |
#include <cstring> |
28 |
|
27 |
void Trooper::getImpassabilityPenalty(const float impassability, float &base, float &base_value, float &penalty) const { |
29 |
void Trooper::getImpassabilityPenalty(const float impassability, float &base, float &base_value, float &penalty) const { |
28 |
if (impassability > 0.2f) { |
30 |
if (impassability > 0.2f) { |
29 |
base_value = 0.2f; |
31 |
base_value = 0.2f; |