0ad/source/ps
elexis 1e07787e76 Revert 64bit number conversions added in c0ca70efd2, don't add the previous long and unsigned long conversions back and use double in the Replay menu.
64bit conversions (including the long ones) are not safe, because not
every number can be converted to the 2^53 JS numbers and pretending to
do so is asking for bugs.
Explicitly use the double type in the Replay menu, because std::time_t
is unspecified and some platforms like Ubuntu yakkety:i386 fail to
build, looking for long.
Double should work for the next 285 million years, becomes consistent
with SavedGame.cpp, is tested by test_ScriptConversions.cpp and doesn't
pretend to cover all 64bit numbers.

Patch By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D205
Refs #3848 D84 D112

This was SVN commit r19367.
2017-04-01 21:06:55 +00:00
..
GameSetup Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
scripting Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
tests Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
XML Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
ArchiveBuilder.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
ArchiveBuilder.h Handle mods specified on the command line when using the archive builder. 2014-06-15 16:43:08 +00:00
CacheLoader.cpp add file notification to Mac ticket 514, also change name of class FileInfo to CFileInfo to ease Mac development 2013-09-10 14:17:04 +00:00
CacheLoader.h Improves CColladaManager caching behavior: skeletons.xml changes now invalidate cached .pmd/psa files, CCacheLoader is used for consistency, adds support for archived files. Fixes #1167. 2012-02-19 03:30:59 +00:00
CConsole.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
CConsole.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CLogger.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
CLogger.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Compress.cpp More build fixes for FreeBSD. 2012-01-31 00:06:56 +00:00
Compress.h More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
ConfigDB.cpp Save the config file even it does not exist, patch by Vladislav Belov, fixes #4146 2016-11-18 18:06:01 +00:00
ConfigDB.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CStr.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
CStr.h Remove duplicated layers of unescaping which required multiple escapes in some places. 2014-12-13 01:08:29 +00:00
CStrIntern.cpp Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
CStrIntern.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CStrInternStatic.h Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
DllLoader.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
DllLoader.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Errors.cpp
Errors.h Catch exceptions by reference (by convention), based on patch from Markus, refs #1852 2013-05-22 22:27:53 +00:00
FileIo.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
FileIo.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Filesystem.cpp Use in-place construction. 2015-07-29 23:44:17 +00:00
Filesystem.h Move GUI schemas to the mod mod. Fix some validation related errors in the mod mod. 2015-06-15 16:00:26 +00:00
Game.cpp Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095. 2017-01-24 02:04:50 +00:00
Game.h Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095. 2017-01-24 02:04:50 +00:00
Globals.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
Globals.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
GUID.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
GUID.h Multiplayer lobby based on the XmPP protocol. Special thanks to Philip, alpha123, scythetwirler, and anyone else who has helped build, debug or test the lobby. 2013-11-07 20:07:24 +00:00
Hotkey.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
Hotkey.h Unload hotkeys on shutdown. 2014-09-15 01:27:06 +00:00
Joystick.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
Joystick.h Renames our sdl.h to libsdl.h, to avoid case sensitivity errors when it includes SDL.h. 2012-01-12 23:32:27 +00:00
KeyName.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
KeyName.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Loader.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
Loader.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
LoaderThunks.h warning fixes: mostly size_t vs. specialized API type and other type conversion. 2010-09-05 09:38:30 +00:00
Mod.cpp Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
Mod.h Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
Preprocessor.cpp Preprocessor: Avoid using "%.*hs" in log format string, since cppformat doesn't support it. 2015-01-22 20:38:16 +00:00
Preprocessor.h Fix CPreprocessor uninitialised data causing error messages on "#endif" followed by EOF with no newline. Warn about unrecognised "#elif". 2012-04-02 16:12:46 +00:00
PreprocessorWrapper.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
PreprocessorWrapper.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
Profile.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
Profile.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Profiler2.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
Profiler2.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Profiler2GPU.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
Profiler2GPU.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
ProfileViewer.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
ProfileViewer.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Pyrogenesis.cpp Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
Pyrogenesis.h Move engine version to common file. Patch by elexis. Fixes #3359. 2015-08-01 23:03:13 +00:00
Replay.cpp Revert 64bit number conversions added in c0ca70efd2, don't add the previous long and unsigned long conversions back and use double in the Replay menu. 2017-04-01 21:06:55 +00:00
Replay.h An awesome Rejoin-test tool by wraitii and Itms, fixes #4242, refs #3460. 2016-11-15 13:26:58 +00:00
SavedGame.cpp Pass pointer by ref. 2016-06-12 14:37:13 +00:00
SavedGame.h Messed up variable name in 9dc66a27d8. 2016-06-12 15:29:43 +00:00
Shapes.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
Shapes.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
Singleton.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
TemplateLoader.cpp Use XML files instead of hardcoded C++ code in the template manager to universally change template properties at load time. 2017-03-16 19:56:12 +00:00
TemplateLoader.h Use XML files instead of hardcoded C++ code in the template manager to universally change template properties at load time. 2017-03-16 19:56:12 +00:00
ThreadUtil.cpp Add a list of statically-constructed CStrIntern strings 2013-09-29 13:19:52 +00:00
ThreadUtil.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
TouchInput.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
TouchInput.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
UniDoubler.h per discussion with Philip, remove STL_HASH_MAP etc. because they're ugly, rarely used and superseded by boost::unordered* 2011-03-23 16:56:27 +00:00
UserReport.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
UserReport.h # Add opt-in automatic feedback system. 2011-02-16 20:40:15 +00:00
utf16string.h Fix -Wconversion warnings in simulation code. 2011-08-16 11:18:32 +00:00
Util.cpp Fix compilation failure. 2016-08-21 20:35:10 +00:00
Util.h Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095. 2017-01-24 02:04:50 +00:00
VideoMode.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
VideoMode.h Fixes some issues when toggling fullscreen mode with SDL2, refs #2041: 2014-09-28 22:10:09 +00:00
VisualReplay.cpp Use std::time_t in the replay menu (as 64bit integer conversion are implemented now) and remove the unused filemoddate fallback. 2017-02-05 02:18:33 +00:00
VisualReplay.h Always save the replay metadata (summary screen info) when ending the application. Patch by Imarok, fixes #4020. 2016-08-17 15:17:43 +00:00
World.cpp SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
World.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00