Michael Hansen
688852e658
Put compiler checks in their own cmake module
10 years ago
Michael Hansen
15728bbfb5
Add an hsDeprecated macro for declaring APIs deprecated
10 years ago
Adam Johnson
83b8f6c10b
Fix invalid sizeof expressions in HeadSpin.cpp
10 years ago
Adam Johnson
de9fedb4b4
Fix message ref-counting in cyAvatar::RunBehavior
...
This was potential memory leak AND crash bug, all in one nasty package. I
included a little bit of code cleanup free-of-charge.
10 years ago
Adam Johnson
2cc162eecb
plString-ify plPythonSDLModifier
10 years ago
Adam Johnson
e08229e2e3
Fix Age.SetSDL commands...
...
- General code cleanups
- Don't send the entire SDL blob. This is wasteful.
- Actually update the doggone state immediately. Don't screw around!
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
7d76cae10f
Make life simpler. Make life less stupid. Make life work.
10 years ago
Michael Hansen
a53f425e38
Fixes for plFormat on GCC/Clang:
...
- int64_t is a typedef of long on Linux/x86_64 -- don't redefine its specialization
- Properly forward-declare the unspecialized variadic template form of _IFormat
10 years ago
Adam Johnson
088cf740a6
pyDynamicMap header tweaks...
...
More spurious virtual keywords removed
10 years ago
Adam Johnson
305308db90
pyDynamicMap plString-ification
...
We now no longer care if the scripter hands us a string object or a
unicode object! Please note that drawTextW was thrown away because it is
now redundant.
10 years ago
Michael Hansen
933ae6ec17
Provide some sample conversions to plFormat for testing and copying
10 years ago
Michael Hansen
2cb19d3308
Oops - bits parameter isn't actually used any more
10 years ago
Michael Hansen
b199cb5ff0
Add better documentation, and fix some floating point flag stuff
10 years ago
Michael Hansen
63557352f2
Add support for bool formatting
10 years ago
Michael Hansen
1baefdd0f2
Properly handle zero
10 years ago
Michael Hansen
2048b641d3
Take advantage of some custom formatter shortcuts
10 years ago
Michael Hansen
3f92409a21
Provide implementations of most built-in types (excluding floating point)
10 years ago
Michael Hansen
ad5bef6671
Add framework for plFormat
10 years ago
Adam Johnson
f2dee21063
Nuke std::wstring from plDynamicTextMsg
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
Michael Hansen
aeb4c27c12
Clean up localization mgr lookups and add some missing mnemonics
10 years ago
Michael Hansen
d4465a2168
Port plFontConverter to Qt5
10 years ago
Michael Hansen
b48963b904
Make it compile and work in GCC / Linux
10 years ago
Michael Hansen
f0ed701d8f
Fix pfLocalizationDataMgr's SetElementPlainTextData to work properly
...
without a database re-load.
10 years ago
Michael Hansen
e929708a3b
Use std::atomic_int for hsSafeRefCnt, and move it to hsRefCnt.h/cpp
10 years ago
Adam Johnson
bc76f4d760
Fix floating/exploding dynamic physicals
...
Only put dynamics to sleep if they're at the initial location. This
prevents baskets from exploding on touch by an avatar and should
theoretically make the doggone slave cave kickables activate the pressure
plates.
10 years ago
Darryl Pogue
a3d90948b7
Fix some coverity and style issues in pnEncryption.
10 years ago
Filtik
7d104772fd
Implement chat history browsing (Client and Python)
10 years ago
Adam Johnson
d4dbc81522
Fix another book-sharing message leak...
10 years ago
Adam Johnson
1ed13e6466
Fix some message leaks in cyCamera
10 years ago
Adam Johnson
426d8e08d7
Catch moar crashes...
...
... Instead of throwing up a useless VC++ dialog box, actually do our
error handling.
10 years ago
Adam Johnson
b3d6afc1c1
Can you say KABOOM?
...
The data is interleaved. If you randomly change it up, OpenAL *will* crash
on you...
10 years ago
Michael Hansen
07810ffd9c
Apparently these need to be at the top to work in a purely
...
command-line (msbuild) environment
10 years ago
Darryl Pogue
f9129ae82a
Fix const-ness of some pfPython GUI stuff.
10 years ago
Adam Johnson
f78deb37d3
Fix memory leak in Relto sharing
10 years ago
Adam Johnson
783f0e9eb1
Fix unlikely plStateDescriptor leak
10 years ago
Adam Johnson
4e35dbf528
Fix ConsoleTrigger memory leak
10 years ago
Adam Johnson
133098c18e
Fix pyMatrix44 memory leak
10 years ago
Adam Johnson
5672bcb57e
Fix Coverity issues with pfPatcher
11 years ago
Anne Marije v/d Meer
3fceb7652c
Const getters
11 years ago
Christian Walther
e26f479bb5
Make font flags available to Python in PlasmaConstants.
11 years ago
Anne Marije v/d Meer
04647a1c98
Fix comment Hoikas
11 years ago
Christian Walther
bee6001b78
Fix ptGUIControl.setFontFlags().
11 years ago
Anne Marije v/d Meer
664339a4bd
Move methods to pyGUIControl to pyGUIControlTextBox.
11 years ago
Anne Marije v/d Meer
4e613d1899
add python api to set flags
...
Clean up unwanted changes caused by IDE extension -.-
Reworked implementation
11 years ago
Christian Walther
0c8fc6d559
Undo the kRenderJustXForceLeft bugfix of 4 commits back.
...
The fix (adding adjustment of fRenderInfo.fDestPtr) made kRenderJustXForceLeft behave as intended (left-aligning the edge of the bitmap rather than the side bearing of the first character) but cuts off shadows in some places (e.g. at the left edges of "BUDDIES" and "NEIGHBORS" in the mini KI). To ensure enough space for the shadow, and considering that all content was developed and visually optimized with the bug in place, it seems better to preserve the buggy behavior and make kRenderJustXForceLeft work exactly like kRenderJustXLeft.
11 years ago
Adam Johnson
1967178e37
Link shadowed text rendering to the plDynamicTextMap::kFontShadowed flag.
...
Conveniently enough, this existing but unimplemented flag is already set mostly the way we want it in the current PRPs.
11 years ago