Skip to content

Commit c6245aa

Browse files
committed
Merge from dev [skip ci]
2 parents e9854d0 + 861247f commit c6245aa

File tree

680 files changed

+10502
-9818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

680 files changed

+10502
-9818
lines changed

.github/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#### For the engine to work with the worldwide version of SoC, use the ` -steam` launch parameter ####
2626

2727
### Compilation guide: ###
28-
* Visual Studio 15.5 or later required.
28+
* Latest version of Visual Studio 2017 or 2019 or 2022 required
2929
* Open Engine.sln
3030
* Set the platform to x64 and the configuration to Release, then select Build -> Build solution
3131
### Thanks to: ###
@@ -59,7 +59,7 @@ And everyone else whose work has been used. If you are not mentioned, send a mes
5959
#### Для того, чтобы движок работал с WW-версией SHOC - используйте специальный ключ запуска ` -steam` ####
6060

6161
### Инструкции по сборке: ###
62-
* Для сборки требуется Visual Studio 15.5 или выше.
62+
* Требуется актуальная версия Visual Studio 2017 или 2019 или 2022
6363
* Открываете Engine.sln
6464
* В студии выбираете Сборка -> Собрать решение, предварительно выставив платформу x64 и конфигурацию Release
6565
### Благодарим: ###

3rd_party/Src/d3dx/d3dx/d3dx9math.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ typedef struct D3DXFLOAT16
5656
{
5757
#ifdef __cplusplus
5858
public:
59-
D3DXFLOAT16() {};
59+
D3DXFLOAT16() = default;
6060
D3DXFLOAT16( FLOAT );
6161
D3DXFLOAT16( CONST D3DXFLOAT16& );
6262

@@ -88,7 +88,7 @@ typedef struct D3DXVECTOR2
8888
{
8989
#ifdef __cplusplus
9090
public:
91-
D3DXVECTOR2() {};
91+
D3DXVECTOR2() = default;
9292
D3DXVECTOR2( CONST FLOAT * );
9393
D3DXVECTOR2( CONST D3DXFLOAT16 * );
9494
D3DXVECTOR2( FLOAT x, FLOAT y );
@@ -162,7 +162,7 @@ typedef struct D3DXVECTOR2_16F
162162
typedef struct D3DXVECTOR3 : public D3DVECTOR
163163
{
164164
public:
165-
D3DXVECTOR3() {};
165+
D3DXVECTOR3() = default;
166166
D3DXVECTOR3( CONST FLOAT * );
167167
D3DXVECTOR3( CONST D3DVECTOR& );
168168
D3DXVECTOR3( CONST D3DXFLOAT16 * );
@@ -237,7 +237,7 @@ typedef struct D3DXVECTOR4
237237
{
238238
#ifdef __cplusplus
239239
public:
240-
D3DXVECTOR4() {};
240+
D3DXVECTOR4() = default;
241241
D3DXVECTOR4( CONST FLOAT* );
242242
D3DXVECTOR4( CONST D3DXFLOAT16* );
243243
D3DXVECTOR4( CONST D3DVECTOR& xyz, FLOAT w );
@@ -426,7 +426,7 @@ typedef struct D3DXQUATERNION
426426
{
427427
#ifdef __cplusplus
428428
public:
429-
D3DXQUATERNION() {}
429+
D3DXQUATERNION() = default;
430430
D3DXQUATERNION( CONST FLOAT * );
431431
D3DXQUATERNION( CONST D3DXFLOAT16 * );
432432
D3DXQUATERNION( FLOAT x, FLOAT y, FLOAT z, FLOAT w );
@@ -472,7 +472,7 @@ typedef struct D3DXPLANE
472472
{
473473
#ifdef __cplusplus
474474
public:
475-
D3DXPLANE() {}
475+
D3DXPLANE() = default;
476476
D3DXPLANE( CONST FLOAT* );
477477
D3DXPLANE( CONST D3DXFLOAT16* );
478478
D3DXPLANE( FLOAT a, FLOAT b, FLOAT c, FLOAT d );
@@ -513,7 +513,7 @@ typedef struct D3DXCOLOR
513513
{
514514
#ifdef __cplusplus
515515
public:
516-
D3DXCOLOR() {}
516+
D3DXCOLOR() = default;
517517
D3DXCOLOR( DWORD argb );
518518
D3DXCOLOR( CONST FLOAT * );
519519
D3DXCOLOR( CONST D3DXFLOAT16 * );

3rd_party/Src/ode/include/ode/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dReal dRandReal();
5555

5656
/* print out a matrix */
5757
#ifdef __cplusplus
58-
void dPrintMatrix (const dReal *A, int n, int m, char *fmt = "%10.4f ",
58+
void dPrintMatrix (const dReal *A, int n, int m, const char *fmt = "%10.4f ",
5959
FILE *f=stdout);
6060
#else
6161
void dPrintMatrix (const dReal *A, int n, int m, char *fmt, FILE *f);

3rd_party/Src/ode/include/ode/odecpp.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class dBallJoint : public dJoint {
323323
void operator= (const dBallJoint &);
324324

325325
public:
326-
dBallJoint() { }
326+
dBallJoint() = default;
327327
dBallJoint (dWorldID world, dJointGroupID group=0)
328328
{ _id = dJointCreateBall (world, group); }
329329

@@ -347,7 +347,7 @@ class dHingeJoint : public dJoint {
347347
void operator = (const dHingeJoint &);
348348

349349
public:
350-
dHingeJoint() { }
350+
dHingeJoint() = default;
351351
dHingeJoint (dWorldID world, dJointGroupID group=0)
352352
{ _id = dJointCreateHinge (world, group); }
353353

@@ -389,7 +389,7 @@ class dSliderJoint : public dJoint {
389389
void operator = (const dSliderJoint &);
390390

391391
public:
392-
dSliderJoint() { }
392+
dSliderJoint() = default;
393393
dSliderJoint (dWorldID world, dJointGroupID group=0)
394394
{ _id = dJointCreateSlider (world, group); }
395395

@@ -424,7 +424,7 @@ class dUniversalJoint : public dJoint {
424424
void operator = (const dUniversalJoint &);
425425

426426
public:
427-
dUniversalJoint() { }
427+
dUniversalJoint() = default;
428428
dUniversalJoint (dWorldID world, dJointGroupID group=0)
429429
{ _id = dJointCreateUniversal (world, group); }
430430

@@ -472,7 +472,7 @@ class dHinge2Joint : public dJoint {
472472
void operator = (const dHinge2Joint &);
473473

474474
public:
475-
dHinge2Joint() { }
475+
dHinge2Joint() = default;
476476
dHinge2Joint (dWorldID world, dJointGroupID group=0)
477477
{ _id = dJointCreateHinge2 (world, group); }
478478

@@ -520,7 +520,7 @@ class dFixedJoint : public dJoint {
520520
void operator = (const dFixedJoint &);
521521

522522
public:
523-
dFixedJoint() { }
523+
dFixedJoint() = default;
524524
dFixedJoint (dWorldID world, dJointGroupID group=0)
525525
{ _id = dJointCreateFixed (world, group); }
526526

@@ -540,7 +540,7 @@ class dContactJoint : public dJoint {
540540
void operator = (const dContactJoint &);
541541

542542
public:
543-
dContactJoint() { }
543+
dContactJoint() = default;
544544
dContactJoint (dWorldID world, dJointGroupID group, dContact *contact)
545545
{ _id = dJointCreateContact (world, group, contact); }
546546

@@ -557,7 +557,7 @@ class dNullJoint : public dJoint {
557557
void operator = (const dNullJoint &);
558558

559559
public:
560-
dNullJoint() { }
560+
dNullJoint() = default;
561561
dNullJoint (dWorldID world, dJointGroupID group=0)
562562
{ _id = dJointCreateNull (world, group); }
563563

@@ -574,7 +574,7 @@ class dAMotorJoint : public dJoint {
574574
void operator = (const dAMotorJoint &);
575575

576576
public:
577-
dAMotorJoint() { }
577+
dAMotorJoint() = default;
578578
dAMotorJoint (dWorldID world, dJointGroupID group=0)
579579
{ _id = dJointCreateAMotor (world, group); }
580580

3rd_party/Src/ode/include/ode/odecpp_collision.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class dSphere : public dGeom {
192192
void operator= (dSphere &);
193193

194194
public:
195-
dSphere () { }
195+
dSphere () = default;
196196
dSphere (dSpaceID space, dReal radius)
197197
{ _id = dCreateSphere (space, radius); }
198198

@@ -214,7 +214,7 @@ class dBox : public dGeom {
214214
void operator= (dBox &);
215215

216216
public:
217-
dBox () { }
217+
dBox () = default;
218218
dBox (dSpaceID space, dReal lx, dReal ly, dReal lz)
219219
{ _id = dCreateBox (space,lx,ly,lz); }
220220

@@ -236,7 +236,7 @@ class dPlane : public dGeom {
236236
void operator= (dPlane &);
237237

238238
public:
239-
dPlane() { }
239+
dPlane() = default;
240240
dPlane (dSpaceID space, dReal a, dReal b, dReal c, dReal d)
241241
{ _id = dCreatePlane (space,a,b,c,d); }
242242

@@ -258,7 +258,7 @@ class dCCylinder : public dGeom {
258258
void operator= (dCCylinder &);
259259

260260
public:
261-
dCCylinder() { }
261+
dCCylinder() = default;
262262
dCCylinder (dSpaceID space, dReal radius, dReal length)
263263
{ _id = dCreateCCylinder (space,radius,length); }
264264

@@ -280,7 +280,7 @@ class dRay : public dGeom {
280280
void operator= (dRay &);
281281

282282
public:
283-
dRay() { }
283+
dRay() = default;
284284
dRay (dSpaceID space, dReal length)
285285
{ _id = dCreateRay (space,length); }
286286

@@ -316,7 +316,7 @@ class dGeomTransform : public dGeom {
316316
void operator= (dGeomTransform &);
317317

318318
public:
319-
dGeomTransform() { }
319+
dGeomTransform() = default;
320320
dGeomTransform (dSpaceID space)
321321
{ _id = dCreateGeomTransform (space); }
322322

3rd_party/Src/ode/ode/src/mat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void dMatrix::makeRandom (dReal range)
207207
}
208208

209209

210-
void dMatrix::print (char *fmt, FILE *f)
210+
void dMatrix::print (const char *fmt, FILE *f)
211211
{
212212
for (int i=0; i<n; i++) {
213213
for (int j=0; j<m; j++) fprintf (f,fmt,data[i*m+j]);

3rd_party/Src/ode/ode/src/mat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class dMatrix {
6363
void clearUpperTriangle();
6464
void clearLowerTriangle();
6565
void makeRandom (dReal range);
66-
void print (char *fmt = "%10.4f ", FILE *f=stdout);
66+
void print (const char *fmt = "%10.4f ", FILE *f=stdout);
6767
dReal maxDifference (const dMatrix &);
6868
};
6969

3rd_party/Src/ode/ode/src/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ dReal dRandReal()
7676
//****************************************************************************
7777
// matrix utility stuff
7878

79-
void dPrintMatrix (const dReal *A, int n, int m, char *fmt, FILE *f)
79+
void dPrintMatrix (const dReal *A, int n, int m, const char *fmt, FILE *f)
8080
{
8181
int i,j;
8282
int skip = dPAD(m);

3rd_party/Src/ode/ode/src/timer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static struct {
262262
double total_t; // total clocks used in this slot.
263263
double total_p; // total percentage points used in this slot.
264264
int count; // number of times this slot has been updated.
265-
char *description; // pointer to static string
265+
const char* description; // pointer to static string
266266
} event[MAXNUM];
267267

268268

@@ -285,7 +285,7 @@ static void initSlots()
285285
void dTimerStart (const char *description)
286286
{
287287
initSlots();
288-
event[0].description = const_cast<char*> (description);
288+
event[0].description = description;
289289
num = 1;
290290
serialize();
291291
getClockCount (event[0].cc);
@@ -297,7 +297,7 @@ void dTimerNow (const char *description)
297297
if (num < MAXNUM) {
298298
// do not serialize
299299
getClockCount (event[num].cc);
300-
event[num].description = const_cast<char*> (description);
300+
event[num].description = description;
301301
num++;
302302
}
303303
}
Binary file not shown.

0 commit comments

Comments
 (0)