Darryl Pogue
ccd5687e61
Fix pnUUID linking on OSX. Closes #451 .
10 years ago
Michael Hansen
085c00706c
Some fixes for Clang
10 years ago
Michael Hansen
094b0fe557
Move <algorithm> header out of HeadSpin.h
10 years ago
Michael Hansen
751d760772
Use standard (f)abs functions
10 years ago
Michael Hansen
1a987173d6
Use std::swap
10 years ago
Michael Hansen
72f18e8ebb
Complete the previous commit by also removing the inline min and max
...
functions defined in HeadSpin.h without breaking (3ds)Max compilation
10 years ago
Michael Hansen
e36220cca5
Use std::min and std::max
10 years ago
Michael Hansen
9d67b96837
Fix some errors and warnings when compiling with Clang
10 years ago
Michael Hansen
474b54396b
Reintroduce (and enforce use of) hsLockFor{Reading,Writing}
10 years ago
Michael Hansen
b774548066
Simplify plDispatch mutexes a bit
10 years ago
Michael Hansen
2947acb2c8
Replace hsMutex with std::mutex
10 years ago
Darryl Pogue
f5b2bddbb2
Always use hsTimer for profile stats.
...
This fixes the weird flickering and inaccurate numbers that were showing up on Windows.
10 years ago
Darryl Pogue
a0da984cdc
Work towards killing TimeGetMs.
...
Only remaining uses are in pnAsyncCore stuff, and I'm not touching that
until the std::thread merge is figured out.
10 years ago
Darryl Pogue
a3ae4201a2
Template-ize hsTimer return values.
10 years ago
Darryl Pogue
5b0652cb7e
std::chrono-ize hsTimer.
10 years ago
Darryl Pogue
6fb7090eed
Remove unused pnUtTime functions.
10 years ago
Michael Hansen
f93b37e152
Switch plFormat's accumulator to a plStringStream for better performance
10 years ago
Michael Hansen
aee2f7f7ca
Make hsRefCnt atomic, and merge with hsAtomicRefCnt
10 years ago
Michael Hansen
5c6b6bbc7c
Fix the rest of the plString::Format calls
10 years ago
Michael Hansen
48ca0fde19
More plFormat -- some may make minor changes to certain debug output
...
(mostly regarding bools)
10 years ago
Michael Hansen
1debf8180b
Convert many of the now-deprecated plString::Format calls to plFormat
10 years ago
Michael Hansen
d8c3769143
Fix it for standards-complient compilers (GCC/Clang).
...
Unfortunately, this means that all formatters must be declared in the
same place now, as they must be declared BEFORE the template which uses
them is declared (not just before it was instantiated, which MSVC allows).
10 years ago
Michael Hansen
2048b641d3
Take advantage of some custom formatter shortcuts
10 years ago
Michael Hansen
34b2eb1836
More std::atomic and friends
10 years ago
Michael Hansen
23a071860e
pnUtRef started at zero refs instead of one, and this is simpler
...
than finding and removing all the extra Ref() calls.
10 years ago
Michael Hansen
d713a13dbe
Merge pnUtRef with hsRefCnt, and remove the former
10 years ago
Darryl Pogue
a3d90948b7
Fix some coverity and style issues in pnEncryption.
10 years ago
Adam Johnson
4e35dbf528
Fix ConsoleTrigger memory leak
10 years ago
Christian Walther
8c5286400a
Use premultiplied alpha for plDynamicTextMaps on GUI controls.
...
This fixes the irregular dark fringes around light text when not exactly pixel-aligned that are caused by independent interpolation of color and alpha. It also makes calculations simpler for things to come.
11 years ago
Michael Hansen
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
11 years ago
Darryl Pogue
a1e3fa6faf
Various MinGW compile fixes.
11 years ago
Michael Hansen
d7fdf10455
Convert ReadSafe(W)String* to the plString variants, and remove the now
...
unneeded _TEMP variants. All safe strings read from hsStreams are
now plStringified :)
11 years ago
Michael Hansen
ef04cfcf84
Age Link info names => plString
11 years ago
Florian Meißner
b0bffa0b5d
Allow setting the G values for the servers in the server.ini
...
Setting these values is optional. If they are not set in the ini file, default values will be used. This way, we don't have to change all our ini files.
11 years ago
Michael Hansen
0c1783b2f3
plGenericVar => plString
...
- Also fixes a bug in plGenericType::CopyFrom, where doubles would get
only half copied (and therefore become corrupt)
11 years ago
Michael Hansen
a783642515
Python file names and SynchedObj SDL state names => plString
11 years ago
Michael Hansen
ec70590c5b
proVariableEventData name => plString
11 years ago
Adam Johnson
88a60f04f6
Inline plKey::operator==
11 years ago
Florian Meißner
7ca81ba626
Implement a plLoadClothingMsg as a clone loading trigger
11 years ago
Darryl Pogue
7f3ba3b106
Required link libraries for pnNetCommon.
...
Allows it to build and link properly under gcc/clang.
11 years ago
Adam Johnson
3299267976
Integrate SecurePreloader into pfPatcher
11 years ago
Adam Johnson
c3ce9a07ab
Another decimal place in the profiling display
...
And Hoikas said, "I cannot tell a difference in the skinning times on my
not-crappy computer with only a tenth of a millisecond resolution." So we
now have hundredth of a millisecond in the profiling display. These are
the kinds of problems you have when developing with a machine that doesn't
suck. It would be nice if players didn't try to run the game on machines
from before the exctinction event that ended the Permian era.
11 years ago
Adam Johnson
09f9380073
Only validate FixedKeys in debug builds
11 years ago
Adam Johnson
1142d8d340
RefreshFOV camera command
12 years ago
Darryl Pogue
9e8131f73b
Fix return values for Read_LCS & Write_LCS.
12 years ago
Darryl Pogue
2a578d3d35
Fix 64-bit *nix compilation of pnNetProtocol.
12 years ago
Darryl Pogue
e4af3aff16
time.h -> ctime
12 years ago
Darryl Pogue
b01aab4a39
Standardize on C++ headers.
...
Also removes a bunch of duplicate #includes of stuff that's already
pulled in by HeadSpin.h.
12 years ago
Michael Hansen
cc54fb07be
Finish deprecation of pnUtPath
12 years ago
Michael Hansen
6e564476b7
Deprecate plFileUtils and parts of pnUtPath
12 years ago