Skip to content

Commit 434bbc1

Browse files
author
Patrick Rye
committed
Update to v1.2.1-Beta
17 September 2015 Released version 1.2.1-Beta Change log: -Fixed: An issue with mass not being set causing values to being NaN, if drag was not enabled
1 parent 0265ddc commit 434bbc1

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

ChangesLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
17 September 2015
2+
Released version 1.2.1-Beta
3+
4+
Change log:
5+
-Fixed: An issue with mass not being set causing values to being NaN, if drag was not enabled
6+
17
17 September 2015
28
Released version 1.2.0-Beta
39

src/cannonball.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ clsCannonball::clsCannonball() {
2929
/**********************************************************************************************************************************************/
3030
void clsCannonball::enableDrag(void) {
3131
blnDragEnabled = true;
32-
Drag_calcvalues();
3332
if (Global::blnDebugMode) {printf("Drag enabled.\n");}
3433
}
3534
/**********************************************************************************************************************************************/
@@ -117,7 +116,7 @@ void clsCannonball::update(double newdeltat) {
117116
if (total_v < Global::Physics::fMinVelocity || isnan(total_v) ) {
118117
blnstarted = false;
119118
if (Global::blnDebugMode) {
120-
if ( isnan(total_v) ) {printf("Ball vel is Nan; killing it\n");}
119+
if ( isnan(total_v) ) {printf("Ball vel is NaN; killing it\n");}
121120
else {printf("Ball moving too slow; killing it\n");}
122121
} //end if debug mode
123122
} //end if should kill
@@ -139,7 +138,6 @@ void clsCannonball::show() {
139138
/**********************************************************************************************************************************************/
140139
void clsCannonball::setValues(double r, LOC init_place, double init_vel, double init_angle, uint ID) {
141140
props.radius = r; //in meters
142-
props.density = Global::Physics::uBallDensity; //density of steel in kg/m^3
143141

144142
acc.x = 0.00;
145143
acc.y = Global::Physics::fGravity;
@@ -154,7 +152,7 @@ void clsCannonball::setValues(double r, LOC init_place, double init_vel, double
154152
ballID = ID;
155153
blnstarted = true;
156154

157-
155+
Drag_calcvalues();
158156
if (Global::Config.values.blnDragMode) { enableDrag(); }
159157
}
160158
/**********************************************************************************************************************************************/

src/version.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
//Standard Version Type
1515
#define DEFINED_VER_MAJOR 1
1616
#define DEFINED_VER_MINOR 2
17-
#define DEFINED_VER_BUILD 0
18-
#define DEFINED_VER_REVISION 2
17+
#define DEFINED_VER_BUILD 1
18+
#define DEFINED_VER_REVISION 58
1919

2020
//Miscellaneous Version Types
21-
#define DEFINED_VER_BUILDS_COUNT 50
22-
#define DEFINED_VER_RC_FILEVERSION 1,2,0,2
23-
#define DEFINED_VER_RC_FILEVERSION_STRING "1, 2, 0, 2\0"
24-
#define DEFINED_VER_FULLVERSION_STRING "1.2.0.2"
21+
#define DEFINED_VER_BUILDS_COUNT 8
22+
#define DEFINED_VER_RC_FILEVERSION 1,2,1,58
23+
#define DEFINED_VER_RC_FILEVERSION_STRING "1, 2, 1, 58\0"
24+
#define DEFINED_VER_FULLVERSION_STRING "1.2.1.58"
2525

2626
//These values are to keep track of your versioning state, don't modify them.
27-
#define DEFINED_VER_BUILD_HISTORY 2
27+
#define DEFINED_VER_BUILD_HISTORY 1
2828

2929

3030
#endif //__VERSION_HEADER__

0 commit comments

Comments
 (0)