Skip to content

Commit 2250c12

Browse files
Merge pull request #1 from Robosturm/master
Merge
2 parents 901c41d + ad8ba6e commit 2250c12

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ if(PRECOMPILEDOPENSSL AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
109109
elseif(PRECOMPILEDOPENSSL AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
110110
message("Using local pre-compiled openssl version from path: ${OPENSSL_LIB_PATH} for windows")
111111
set(OPENSSL_LIBS
112-
${OPENSSL_LIB_PATH}/libcrypto-3-x64.dll
113-
${OPENSSL_LIB_PATH}/libssl-3-x64.dll
112+
${OPENSSL_LIB_PATH}/libcrypto-4-x64.dll
113+
${OPENSSL_LIB_PATH}/libssl-4-x64.dll
114114
CACHE INTERNAL "")
115115
include_directories(${OPENSSL_INCLUDE_DIR})
116116
message ("OpenSsL Include directories:" ${OPENSSL_INCLUDE_DIR})
@@ -215,15 +215,15 @@ endif()
215215
add_definitions(
216216
-DVERSION_MAJOR=0
217217
-DVERSION_MINOR=38
218-
-DVERSION_REVISION=6
218+
-DVERSION_REVISION=7
219219
-DVERSION_SUFFIX="main"
220220
-DCOW_BUILD_TAG="${COW_BUILD_TAG}"
221221
-DCOW_BUILD_NAME="${COW_BUILD_NAME}"
222222
-DUPDATE_FILE="${UPDATE_FILE}"
223223
)
224224

225-
set(COW_ANDROID_VERSION_NAME "0.38.6-main")
226-
set(COW_ANDROID_VERSION_CODE "67")
225+
set(COW_ANDROID_VERSION_NAME "0.38.7-main")
226+
set(COW_ANDROID_VERSION_CODE "68")
227227

228228
###################################################################################
229229
# Set up some compiler and linking options

ai/productionSystem/simpleproductionsystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ void SimpleProductionSystem::getBuildDistribution(std::vector<CurrentBuildDistri
573573
while(i < item.distribution.unitIds.size())
574574
{
575575
qint32 cost = item.distribution.units[i]->getUnitCosts();
576-
if (cost >= minBaseCost ||
576+
if (cost >= minBaseCost &&
577577
cost <= maxBaseCost)
578578
{
579579
++i;

game/unit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3675,7 +3675,7 @@ void Unit::serializeObject(QDataStream& pStream, bool forHash) const
36753675
pStream << units;
36763676
for (qint32 i = 0; i < units; i++)
36773677
{
3678-
m_TransportUnits[i]->serializeObject(pStream);
3678+
m_TransportUnits[i]->serializeObject(pStream, forHash);
36793679
}
36803680
pStream << m_capturePoints;
36813681
pStream << m_Hidden;

menue/shopmenu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ void Shopmenu::onEnter()
138138

139139
void Shopmenu::exitMenue()
140140
{
141+
Userdata::getInstance()->storeUser();
141142
CONSOLE_PRINT("Leaving Shop Menue", GameConsole::eDEBUG);
142143
m_onEnterTimer.stop();
143144
auto window = MemoryManagement::create<Mainwindow>("ui/menu/playermenu.xml");

network/networkInterface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ void NetworkInterface::attachKeys(QSslConfiguration &sslConfiguration)
4747
X509_gmtime_adj(X509_get_notAfter(x509.get()), 3600L * 24L * 365L * 10L);
4848
X509_set_pubkey(x509.get(), pkey);
4949
auto * nameField = X509_get_subject_name(x509.get());
50-
X509_NAME_add_entry_by_txt(nameField, "C", MBSTRING_ASC, reinterpret_cast<const unsigned char *>("DE"), -1, -1, 0);
51-
X509_NAME_add_entry_by_txt(nameField, "O", MBSTRING_ASC, reinterpret_cast<const unsigned char *>("CommanderWars"), -1, -1, 0);
50+
X509_NAME_add_entry_by_txt(nameField, "C", MBSTRING_ASC, const_cast<unsigned char*>(reinterpret_cast<const unsigned char *>("DE")), -1, -1, 0);
51+
X509_NAME_add_entry_by_txt(nameField, "O", MBSTRING_ASC, const_cast<unsigned char*>(reinterpret_cast<const unsigned char *>("CommanderWars")), -1, -1, 0);
5252
// X509_NAME_add_entry_by_txt(nameField, "CN", MBSTRING_ASC, reinterpret_cast<const unsigned char *>("localhost"), -1, -1, 0);
5353
X509_set_issuer_name(x509.get(), nameField);
5454
if (X509_sign(x509.get(), pkey, EVP_sha1()))

0 commit comments

Comments
 (0)