Remove trailing newlines

The following shell script was used:

while read f
do
	sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' -- "$f"
done <<EOF
$(svn ls -R | grep \
	-e '.\cpp$' \
	-e '\.cmake$' \
	-e '\.txt$' \
	-e '\.cppcheck$' \
	-e '\.frag$' \
	-e '\.h$' \
	-e '\.hpp$' \
	-e '\.vert$' \
	-e '\.xml$' \
	-e '\.java$' \
	-e '\.c$')
EOF


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9509 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: aac7ab5702079417cb16ca2fa291be07033ea549
Former-commit-id: f0286e4119f166d7b78f9d13ff2ea04ffaa95c67
This commit is contained in:
xavi92 2024-07-30 22:17:48 +00:00
parent 665996fd28
commit e06a519365
442 changed files with 0 additions and 788 deletions

View file

@ -1464,4 +1464,3 @@ Program:
- new mode for the debug board (Gabor)
* display segment name, distance form start, current camera
- exhaust fires shown when RPM drops (Gabor)

View file

@ -69,4 +69,3 @@ You find a robot programming tutorial on www.berniw.org in the TORCS section.
Robot racing
------------
Visit www.berniw.org/trb for more information.

View file

@ -191,4 +191,3 @@ IF(PLIB_FOUND)
ENDIF(PLIB_FOUND)
MARK_AS_ADVANCED(PLIB_PLIBINCLUDE_DIR)

View file

@ -96,4 +96,3 @@ IF(SOLID_FOUND)
ELSE(SOLID_FOUND)
MESSAGE(FATAL_ERROR "Could not find SOLID")
ENDIF(SOLID_FOUND)

View file

@ -9,4 +9,3 @@ IF(NOT SD_CMAKE_MACROS)
ENDIF(NOT SD_CMAKE_MACROS)
INCLUDE(${SD_CMAKE_MACROS})

View file

@ -364,4 +364,3 @@ MACRO(CHECK_LIBRARIES)
ENDIF(TINYGLTF_FOUND)
ENDMACRO(CHECK_LIBRARIES)

View file

@ -183,4 +183,3 @@
#define SD_LIBDIR "${SD_LIBDIR}/"
#define SD_BINDIR "${SD_BINDIR}/"
#define SD_LOCALDIR "${SD_LOCALDIR}/"

View file

@ -432,4 +432,3 @@ MACRO(SD_INSTALL_CUSTOM_3RDPARTY TARGET_NAME)
SD_INSTALL_FILES(BIN FILES ${_COMPILER_DLL_PATHNAMES})
ENDMACRO(SD_INSTALL_CUSTOM_3RDPARTY TARGET_NAME)

View file

@ -68,4 +68,3 @@ check_tracks("${SD_TRACK_LIST_ITEMS}")
message("==== Checking robots ====")
check_robots("${SD_ROBOT_LIST_ITEMS}")

View file

@ -183,4 +183,3 @@ MACRO(SPLIT_ARGN)
ENDIF(SA_START AND NOT SA_EXPECT_KEYWORD)
ENDMACRO(SPLIT_ARGN)

View file

@ -46,4 +46,3 @@ I - Main changes since 2.0.0 (r4687)
Race engine
* Cmake 'OPTION_REPEATABLE_RANDOM' for constant randomness

View file

@ -64,4 +64,3 @@ every new robot gets a higher index.
There exists a function in robottools to find out which car a robot
with a specific index is driving.

View file

@ -24,4 +24,3 @@ of laps after the time has finished. s->_totTime contains the time which must
end first because the session is finished. If the session isn't timed, then
s->_totTime is lower then zero (-60.0f in practice). The time left can be
calculated from s->_totTime and s->currentTime.

View file

@ -83,4 +83,3 @@ yellow start lights
role: st_yellow
index: phase (even or odd)
remark: flashes, not used at the moment

View file

@ -154,6 +154,3 @@
*/
#endif /* _SD_DOC_H_ */

View file

@ -109,9 +109,3 @@ Robots:
Platforms:
Packages/Installer:

View file

@ -15,4 +15,3 @@ freely, subject to the following restrictions:
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

View file

@ -10,4 +10,3 @@ https://www.libsdl.org/
This library is distributed under the terms of the zlib license:
http://www.zlib.net/zlib_license.html

View file

@ -56,6 +56,3 @@ Building the dependencies for Speed-Dreams makes use of CMake's ExternalProject
=============================================================================
Linux
TODO

View file

@ -54,4 +54,3 @@
</component>
</install>

View file

@ -10,4 +10,3 @@ ADD_SUBDIRECTORY(modules)
ADD_SUBDIRECTORY(main)
ADD_SUBDIRECTORY(tools)

View file

@ -172,4 +172,3 @@ static void shutdown(int index)
}
}
}

View file

@ -78,5 +78,3 @@ SingleCardata *Cardata::findCar(tCarElt *car)
}
return NULL;
}

View file

@ -1012,4 +1012,3 @@ float Driver::brakedist(float allowedspeed, float mu)
float v2sqr = allowedspeed*allowedspeed;
return -log((c + v2sqr*d)/(c + v1sqr*d))/(2.0f*d);
}

View file

@ -187,4 +187,3 @@ class Driver {
};
#endif // _DRIVER_H_

View file

@ -207,7 +207,3 @@ void Opponents::setTeamMate(const char *teammate)
}
}
}

View file

@ -199,4 +199,3 @@ float Pit::getSpeedLimitBrake(float speedsqr)
{
return (speedsqr-speedlimitsqr)/(pitspeedlimitsqr-speedlimitsqr);
}

View file

@ -78,5 +78,3 @@ class Pit {
};
#endif // _PIT_H_

View file

@ -55,4 +55,3 @@ float Spline::evaluate(float z)
a3 -= a2;
return a0 + (a1 + (a2 + a3*t) * (t-1))*t;
}

View file

@ -40,4 +40,3 @@ class Spline {
};
#endif // _SPLINE_H_

View file

@ -293,4 +293,3 @@ float SimpleStrategy2::pitRefuel(tCarElt* car, tSituation *s)
m_lastpitfuel = fuel;
return fuel;
}

View file

@ -106,5 +106,3 @@ class SimpleStrategy2 : public SimpleStrategy {
#endif // _STRATEGY_H_

View file

@ -231,4 +231,3 @@ const int OPP_CATCHING_ACC = 0x200000;
//--------------------------------------------------------------------------*
// end of file globaldefinitions.h
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -110,4 +110,3 @@ class Opponents {
#endif // _OPPONENT_H_

View file

@ -41,4 +41,3 @@ public:
#endif // _PIDCONTROLLER_H_

View file

@ -32,4 +32,3 @@ const bool IS_DANDROID_SPEEDDREAMS = true;
#endif
#endif // _TORCS_OR_SD_H_

View file

@ -80,5 +80,3 @@ SingleCardata *Cardata::findCar(tCarElt *car)
}
return NULL;
}

View file

@ -191,4 +191,3 @@ double Correct::CorrectSteer(double steer, double linesteer, double line2left, i
return steer;
}
#endif

View file

@ -59,5 +59,3 @@ class Correct {
};
#endif // _CORRECT_H_

View file

@ -8296,4 +8296,3 @@ double Driver::brakedist(double allowedspeed, double mu)
double v2sqr = allowedspeed*allowedspeed;
return -log((c + v2sqr*d)/(c + v1sqr*d))/(2.0*d);
}

View file

@ -441,4 +441,3 @@ class Driver {
};
#endif // _DRIVER_H_

View file

@ -215,4 +215,3 @@ static void shutdown(int index)
}
#endif
}

View file

@ -247,4 +247,3 @@ void SegLearn::update(tSituation *s, tTrack *t, tCarElt *car, int alone, int avo
last_dammage = car->_dammage;
}

View file

@ -69,4 +69,3 @@ class SegLearn {
#endif //_SEGLEARN_H_

View file

@ -277,4 +277,3 @@ inline void v3d::dirVector(const v3d* b, v3d* r) {
}
#endif // _LINALG_H_

View file

@ -1007,4 +1007,3 @@ void Opponents::update(tSituation *s, Driver *driver)
opponent[i].update(s, driver);
}
}

View file

@ -328,4 +328,3 @@ float Pit::getSpeedLimitBrake(float speedsqr)
{
return (speedsqr-speedlimitsqr)/(pitspeedlimitsqr-speedlimitsqr);
}

View file

@ -92,5 +92,3 @@ class Pit {
};
#endif // _PIT_H_

View file

@ -55,4 +55,3 @@ float Spline::evaluate(float z)
a3 -= a2;
return a0 + (a1 + (a2 + a3*t) * (t-1))*t;
}

View file

@ -40,4 +40,3 @@ class Spline {
};
#endif // _SPLINE_H_

View file

@ -305,5 +305,3 @@ int SimpleStrategy::pitRepair(tCarElt* car, tSituation *s, Opponents *opp)
fprintf(stderr,"%s: repairing %d damage\n",car->_name,dammage);fflush(stderr);
return dammage;
}

View file

@ -105,5 +105,3 @@ class SimpleStrategy : public AbstractStrategy {
#endif // _STRATEGY_H_

View file

@ -1921,4 +1921,3 @@ double KDriver::FilterAccel(const double accel) {
ret = MIN(1.0, last_accel_ + 0.05);
return ret;
} // FilterAccel

View file

@ -288,4 +288,3 @@ inline void v3d::dirVector(const v3d* b, v3d* r) {
}
#endif // SRC_DRIVERS_KILO2008_LINALG_H_

View file

@ -895,4 +895,3 @@ void LRaceLine::SetSegmentCamber(const tTrackSeg *seg, const int div) {
seg_[div].dCamber = dCamber;
} // SetSegmentCamber

View file

@ -58,4 +58,3 @@ double Spline::evaluate(double z) {
a3 -= a2;
return a0 + (a1 + (a2 + a3*t) * (t-1))*t;
}

View file

@ -479,4 +479,3 @@ int NetworkHuman::get_human_index()
return 0;
}

View file

@ -107,4 +107,3 @@ int Cubic::Solve( double* r1, double* r2, double* r3 ) const
{
return Utils::SolveCubic(m_coeffs[0], m_coeffs[1], m_coeffs[2], m_coeffs[3], r1, r2, r3);
}

View file

@ -3627,4 +3627,3 @@ bool Driver::CheckPitSharing(tCarElt *car)
return false;
}
}

View file

@ -269,4 +269,3 @@ void PitPath::LocalToGlobalXY( double dist, double offs, double slope, Vec2d*
*p = Vec3d(trackPoint + trackNormal * offs).GetXY();
*v = Vec2d(trackTangent + trackNormal.GetXY() * slope).GetUnit();
}

View file

@ -112,4 +112,3 @@ bool TeamInfo::IsTeamMate( const CarElt* pCar0, const CarElt* pCar1 ) const
// return false;
// return true;
}

View file

@ -145,4 +145,3 @@ void WheelModel::updateSlip( const tCarElt* car, const tSituation* sit, const
_sy = sin(_sa); // should be tan(_sa)???
}
}

View file

@ -431,4 +431,3 @@ TVec2d TUtils::VecUnit( const TVec2d& v )
//==========================================================================*
// end of file unitcommon.cpp
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -580,4 +580,3 @@ float TDriver::CurrSpeed()
//--------------------------------------------------------------------------*
// end of file unitdriver.h
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -129,4 +129,3 @@ void TLinearRegression::CalcLine(TVec2d& Point, TVec2d& V) const
//==========================================================================*
// end of file unitlinreg.cpp
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -567,4 +567,3 @@ bool TOpponent::Classify(
//--------------------------------------------------------------------------*
// end of file unitopponent.cpp
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -158,5 +158,3 @@ class TPit
//--------------------------------------------------------------------------*
// end of file unitpit.h
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -39,4 +39,3 @@
//==========================================================================*
// end of file unitvec2d.cpp
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -35,4 +35,3 @@
//==========================================================================*
// end of file unitvec3d.cpp
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

View file

@ -110,4 +110,3 @@ static void endrace(int index, tCarElt *car, tSituation *s) {
/* Called before the module is unloaded */
static void shutdown(int index) {
}

View file

@ -560,7 +560,3 @@ typedef struct RmInfo
#define RE_SECT_CLASSPOINTS "Class Points"
#endif /* _RACEMANV1_H_ */

View file

@ -56,6 +56,3 @@ extern sqlite3_stmt *ghostcarBlob;
#endif
#endif /* __REPLAYV1_H__ */

View file

@ -125,6 +125,3 @@ typedef struct RobotItf {
#define ROB_VAL_FEATURE_REALWEATHER "real weather"
#endif /* _ROBOTV1_H_ */

View file

@ -51,6 +51,3 @@
#define SND_VAL_MENUSFX_STATE_DISABLED "disabled"
#endif /* _SOUND_H_ */

View file

@ -46,6 +46,3 @@ typedef struct
#endif /* _TELEMETRY_H_ */

View file

@ -790,6 +790,3 @@ typedef struct Track
#define TRK_ATT_BORDER_DISTANCE "border distance"
#endif /* _TRACKV1_H_ */

View file

@ -16,5 +16,3 @@ ADD_SUBDIRECTORY(portability)
IF(NOT OPTION_OFFICIAL_ONLY)
ADD_SUBDIRECTORY(ephemeris)
ENDIF(NOT OPTION_OFFICIAL_ONLY)

View file

@ -47,4 +47,3 @@ ELSE(WIN32)
ENDIF(WIN32)
SD_INSTALL_FILES(INCLUDE FILES ${EPHEMERIS_HEADERS})

View file

@ -92,4 +92,3 @@ inline double ePhCelestialBody::getLat() const
}
#endif // _CELESTIALBODY_H_

View file

@ -46,7 +46,3 @@ void ePhJupiter::updatePosition(double mjd, ePhStar *ourSun)
ePhCelestialBody::updatePosition(mjd, ourSun);
magnitude = -9.25 + 5*log10( r*R ) + 0.014 * FV;
}

View file

@ -35,4 +35,3 @@ ELSE(WIN32)
ENDIF(WIN32)
SD_INSTALL_FILES(INCLUDE learning FILES ${LEARNING_HEADERS})

View file

@ -854,5 +854,3 @@ int DiscretePolicy::argMax(real* Qs) {
}
return arg_max;
}

View file

@ -39,4 +39,3 @@ typedef straight2t<float> straight2f;
typedef straight2t<double> straight2d;
#endif // _LINALG_T_H_

View file

@ -170,5 +170,3 @@ double sg_random()
return (double)y * (1.0/4294967295.0);
/* divided by 2^32-1 */
}

View file

@ -66,5 +66,3 @@ double sg_random();
#endif // _SG_RANDOM_H

View file

@ -74,4 +74,3 @@ public:
#endif // _SG_TYPES_HXX

View file

@ -67,5 +67,3 @@ template<class T> inline T straight2t<T>::dist(const v2t<T> &s) const
}
#endif //_STRAIGHT_2T_H_

View file

@ -259,4 +259,3 @@ template<class T> inline T v2t<T>::fakeCrossProduct(const v2t<T>* b) const
#endif // _LINALG_V2_T_H_

View file

@ -238,4 +238,3 @@ template<class T> inline v3t<T> crossProduct(const v3t<T>& a, const v3t<T>& b)
#endif // _LINALG_V3_T_H_

View file

@ -222,4 +222,3 @@ template<class T> inline void v4t<T>::normalize(void)
#endif // _LINALG_V4_T_H_

View file

@ -132,5 +132,3 @@ void sgPostMultMat4ByTransMat4( sgMat4 src, const sgVec3 trans )
}
}
}

View file

@ -161,5 +161,3 @@ void sgPostMultMat4ByTransMat4( sgMat4 src, const sgVec3 trans );
#endif // _VECTOR_HXX

View file

@ -44,4 +44,3 @@ ELSE(WIN32)
ENDIF(WIN32)
SD_INSTALL_FILES(INCLUDE FILES robottools.h teammanager.h)

View file

@ -130,4 +130,3 @@ void RtTelemShutdown(void)
GfModUnloadList(&modlist);
#endif
}

View file

@ -53,4 +53,3 @@ void RtGetCarindexString( int index, const char *bot_dname, char extended, char
result[ resultLength - 1 ] = '\0';
}

View file

@ -182,4 +182,3 @@ int GfDirCreate(const char *path)
return (err == -1 && errno != EEXIST) ? GF_DIR_CREATION_FAILED : GF_DIR_CREATED;
}

View file

@ -197,4 +197,3 @@ bool GfFileCopy(const char* pszSrcName, const char* pszTgtName)
return res;
}

View file

@ -242,4 +242,3 @@ void GfFileSetup()
free( isIndexUsed );
free( filename );
}

View file

@ -1828,4 +1828,3 @@ static tFormAnswer func_toAlpha( tFormNode *node, void *parmHandle, char const *
return result;
}

View file

@ -24,6 +24,3 @@
extern void LinuxSpecInit(void);
#endif /* _LINUXSPEC_H_ */

Some files were not shown because too many files have changed in this diff Show more