Lukas Werling
d8e0b33192
Put scenario parameters in SCENPAR proplist
2017-02-21 21:14:43 +01:00
Sven Eberhardt
a7bbda4ca1
Fix order of InitializePlayer(s) callbacks in non-network games with teams enabled [Luchs]
2017-02-18 18:26:21 -05:00
Maikel de Vries
ba731123a2
allow for script players to enter full teams
...
This should not break anything because script players are created by scripts and one may expect sane behaviour. This is useful to block entry for normal players into a team.
2017-01-16 18:57:00 +01:00
Lukas Werling
088fc450d9
Distribute players based on team instead of PrefPosition
2017-01-01 22:52:48 +01:00
Sven Eberhardt
ebda8193ef
Replace NULL by nullptr in C++ sources
...
We don't support pre-C++0x any more, so nullptr should be fine everywhere (except in the plain C source files)
2016-11-02 19:58:02 -04:00
Sven Eberhardt
a882a6e64b
Fix black editor screen due to GL object creation and removal in wrong context
2016-09-06 02:45:17 -04:00
Sven Eberhardt
769fa0fbdc
Do not auto-deactivate clients without players in editor
2016-08-06 22:05:25 -04:00
Nicolas Hake
eabca223f5
Update all copyright notices for 2016
2016-04-03 20:24:42 +02:00
Nicolas Hake
493c276126
Rewrite header inclusions to #include "path/to/file.h" style
2016-04-03 20:24:42 +02:00
Nicolas Hake
0537df5f23
C4Object: Move C4Def.h dep out of header
...
C4Def is only ever used as a pointer inside C4Object.h, so we don't need
to include C4Def.h from it.
2016-04-03 13:24:26 +02:00
Nicolas Hake
735f9cc06b
C4Landscape: Pull everything private out of the header
...
Since LTCG is enabled now, we don't have to define every function inside
the headers for ~xXx super speed xXx~, which means we can strip the
headers down to their bare minimum and reduce interdependencies and
therefore recompilation times by a lot.
2016-04-03 13:24:24 +02:00
Lukas Werling
8811356141
Make C4GamePadControl manage all controllers
...
The available gamepads are distributed automatically among players.
This also implements controller hot-plugging: It is possible to start a
game without a controller and plug it in later, and to reconnect a
controller after plugging it out.
2016-02-23 17:06:59 +01:00
Nicolas Hake
4fdafbc78a
Move StdColors.h ref from C4Surface.h to files that actually need it
...
C4Surface.h doesn't require anything from StdColors.h, so there's no
reason to reference the latter there.
2016-02-08 02:13:18 +01:00
Günther Brammer
e5f75c5a44
Remove a bunch of dead code, mostly player control related
2016-02-03 03:17:23 +01:00
Günther Brammer
03d11cd596
Merge script branch
2016-01-31 21:51:58 +01:00
Günther Brammer
23acdc6060
Use the same team id in view update as in team join
2016-01-30 16:02:31 +01:00
Maikel de Vries
4bcdfc451e
block construction sites based on Exclusive and not on planes ( #1534 )
...
This makes more sense, exclusive object block all other construction sites, irrespective of their planes.
2016-01-30 14:46:14 +01:00
Günther Brammer
68c436576e
Simplify construction of C4AulParSets
2016-01-25 00:00:57 +01:00
Günther Brammer
ce2b8f45b8
Make FnSetPlrKnowledge(C4Player*) a C4Player member function
...
The overload with FnSetPlrKnowledge(C4PropList*) will get problematic.
2016-01-25 00:00:57 +01:00
Günther Brammer
6b6dd96719
Move GameScript.GRBroadCast to Game.GRBroadCast
...
This avoids a dependency on ::Objects from C4ScriptHost.
2016-01-24 02:09:14 +01:00
Nicolas Hake
63ab46e293
C4Player: Merge ctor/Default, dtor/Clear
2015-12-29 02:59:00 +01:00
Nicolas Hake
7475b89bd2
C4MessageBoard: Merge Default/Clear into ctor/dtor
2015-12-28 11:43:40 +01:00
David Dormagen
dcfb986e34
moved sounds into subfolders
...
This completes http://forum.openclonk.org/topic_show.pl?tid=3215
2015-12-13 22:14:55 +01:00
Sven Eberhardt
42a0c5d188
Increase wealth cap to ONE BILLION!!!
...
It makes sense to have a cap because of integer overflow, but it was set very low. Increase it to the largest round number below MAX_INT.
2015-12-12 15:52:22 -05:00
Sven Eberhardt
499959fa14
Fix team distribution of savegame resume and initial script players #1494
2015-12-12 14:09:42 -05:00
Sven Eberhardt
cc12230d56
Add "immediate" parameter to SetPlrView and ResetCursorView script functions to force viewport scroll position to the target.
2015-12-02 22:11:28 -05:00
Nicolas Hake
812e40f0d0
Denumerate sound modifier values after player reload ( #1462 )
...
Deserializing players neglected to turn an enumerated proplist back into
a live one. This would explode later during player initialization when
someone didn't check that the deserialized value was a real, live
proplist.
2015-12-02 16:55:04 +01:00
Nicolas Hake
24b54211c5
Drop Min, Max, Swap for std::min, std::max, std::swap
...
The C++ standard library comes with perfectly fine implementations of
these functions, so there's no point in reimplementing them just for the
hell of it.
2015-11-15 13:53:01 +01:00
Julius Michaelis
d57a8fd62c
Fix two small memleaks
2015-09-24 14:35:50 +02:00
Armin Burgmeier
fd285f6656
Create mipmaps only for static textures that are expected to be zoomed
...
Hopefully fixes #1403 .
2015-09-18 21:10:39 -04:00
Sven Eberhardt
f48c7cc454
Fix source file name in error messages arising during compilation of ParameterDefs files.
2015-09-10 22:34:21 -04:00
Sven Eberhardt
6ab6a1ac3c
Add script interface for some EFX sound modifiers.
2015-08-27 21:44:23 -04:00
Nicolas Hake
4b1b06388e
Replace inverted condition with something more obvious
...
Instead of checking the inverse of the category against a bit mask, just
check whether none of the mask bits are set in the category.
2015-05-25 16:17:58 +02:00
Nicolas Hake
5562b09dc4
Remove a lot of disabled legacy code, round 2
...
Maybe at some point we'll be rid of all the commented-out code that
nobody has looked at in years.
2015-03-25 20:02:53 +01:00
Nicolas Hake
e21a5bdd44
Rename BoundBy to Clamp
...
"BoundBy" sounds like a predicate. "Clamp" is a common function name for
the operation in graphics processing, so it should be familiar to users.
2015-02-12 23:05:55 +01:00
Günther Brammer
5bcedb5bbf
Remove some redundant #includes
2015-01-25 18:53:48 +01:00
Sven Eberhardt
e1a09298d4
Fix a few harmless warnings.
2015-01-25 16:16:06 +01:00
Tobias Zwick
f5ecd4776d
new function SetLightRange (replaces SetPlrViewRange)
2015-01-02 01:06:00 +01:00
Armin Burgmeier
61b05f92c3
Remove unused FoW tracking in C4Player
...
The FoW decay mechanism is not needed anymore, either, because the light
system itself is already slowly fading out when the light changes.
2014-12-29 23:09:31 +01:00
Armin Burgmeier
aed907e30d
Remove old fog of war
2014-11-07 11:53:10 -05:00
Martin Plicht
f1808212db
C4Player: Remove CursorLeft/Right (unused)
2014-10-25 21:26:06 +02:00
Martin Plicht
03f43f462b
C4ObjectList: Replace trivial cases of manual list traversal with iterator usage
2014-10-25 21:25:52 +02:00
Sven Eberhardt
91800fcfec
Implement setting for forced values of parameters in league games.
2014-10-03 14:02:28 +02:00
Sven Eberhardt
58588fbc58
Replace !strncasecmp by SEqual2NoCase to fix MSVC build (strnicmp seems to not work on mac).
2014-09-25 15:15:50 +02:00
Martin Plicht
1dfa21daaa
C4ScenarioParameters: Use strncasecmp instead of strnicmp because POSIX
2014-09-24 23:41:24 +02:00
Sven Eberhardt
abab7be591
Added scenario achievements displayed as small symbols beside the scenario name in the startup selection screen.
...
They can be used e.g. to show that you have finished a scenario on different difficulty levels.
2014-09-24 23:08:40 +02:00
Sven Eberhardt
cd4b3610da
Add script function SetPlayerZoom to set zoom factors directly instead of by view range ( #1065 )
2014-04-21 19:38:05 +02:00
Maikel de Vries
9b96ab2305
Cleaned up base material in library and engine
...
* rename to cleaner *Base* instead of *HomeBase*
* fixed library implementation
* engine code is now obsolete
2014-04-16 14:07:01 +02:00
Nicolas Hake
e8384901e6
Remove UB (++x %= y)
...
A construct like ++x %= y assigns to x twice between sequence points.
Introduce a sequence point here to make the behavior well-defined.
2014-04-15 14:58:54 +02:00
Nicolas Hake
e0dc30c59a
Update copyright notices
...
As discussed in http://forum.openclonk.org/topic_show.pl?tid=2917 , I
have merged all copyright notices into a single file and referenced that
merged file from each source file.
For the updated source files, the timeline has been split into three
parts:
1. Pre-RWD code (before 2001)
2. RWD code (2001 through 2009)
3. OpenClonk code (2009 and later)
All pre-RWD copyright notices have been left intact, as have RWD-era
copyright notices where the file did not have a RedWolf design copyright
notice but only individual author ones. All copyright notices of the
OpenClonk era have been replaced by a single notice ranging from the
first recorded year to the current year (2013). Mape code did not get a
OpenClonk Team copyright notice because it is somewhat separate from the
main OpenClonk codebase and has only been touched by Armin Burgmeier.
2013-12-23 13:03:19 +01:00