Günther Brammer
6c61db0fab
Recognize global constants even if they begin a statement
...
Feuermonster reported that
static const foo = 0;
func bar() { foo = 5; }
resulted in a confusing error message.
2009-08-26 16:59:00 +02:00
Günther Brammer
a511ce98ea
Objects with old versions get Control callbacks early, too
...
This removes some code and some backwards compatibility
with objects which wouldn't function anyway.
2009-08-26 15:59:00 +02:00
Armin Burgmeier
9269c2c79d
merge
2009-08-27 20:59:30 -04:00
David Dormagen
695f0f69b8
The number of the calling player can be passed to custom message-board-commandos
...
using %player% in AddMsgBoardCmd
2009-08-26 14:18:58 +02:00
David Dormagen
cde2718611
Changed behavior of settlement points in evaluation dialogue
...
The game does not display the settlement points in melee rounds anymore.
This behavior can be toggled ingame with HideSettlementScoreInEvaluation(bool fHide)
2009-08-26 14:17:41 +02:00
Armin Burgmeier
a9f3f5e80c
Fix size of C4GroupEntryCore
...
The BOOL->bool patch (ea7876ddd97d) changed the size of C4GroupEntryCore, thus
C4Groups could no longer be loaded correctly. This broke PlayerJoin for packed
player files.
The same patch seems to also cause other problems - normal Clonk movement
in the landscape is currently broken as well.
2009-08-24 23:53:12 -04:00
Armin Burgmeier
d021b9a586
Fixed a glib warning on startup about the main loop being active already
...
The exact warning message was
GLib-WARNING **: g_main_context_prepare(): main loop already active in another
thread
The problem was that there is code in C4Console.cpp which iterates the Glib
main loop to update the Console window while loading the game. This was not
synchronized with CGLibProc - we can't iterate the mainloop when the CGLibProc
already does.
2009-08-23 19:22:55 -04:00
Günther Brammer
337b9eb2d7
Fix object movement broken by BOOL change
...
Somebody thought it would be a good idea to use a BOOL as if it was an int.
Hint: It is not.
2009-08-26 01:21:54 +02:00
Günther Brammer
6ca2ed3b6a
C4PktBuf: Use StdCopyBuf instead of StdBuf as member variable
...
That way, the automatically generated operator= actually works instead of crashing.
2009-08-26 01:20:01 +02:00
Günther Brammer
0254addc90
Fix DebugRec
2009-08-25 17:50:51 +02:00
Günther Brammer
f5b904c3db
More StdApp cleanup
2009-08-16 18:30:28 +02:00
Günther Brammer
08eca68c2a
Restore changes from 4cfa1c35dc2f accidentally reverted by the last commit
...
Sorry.
2009-08-16 15:18:07 +02:00
Günther Brammer
9a8b5dd739
Replace BOOL by bool, TRUE by true, FALSE by false
2009-08-15 20:50:32 +02:00
Günther Brammer
f0adbfe5b4
C4Value: Document the reasons for HasBaseArray
2009-08-15 14:15:10 +02:00
Armin Burgmeier
9dc91c66c4
Set default icon for GTK windows
...
This way message dialogs are decorated with the OC icon as well
2009-08-15 12:22:52 -04:00
Günther Brammer
a28a6621da
shuffle the #includes around a bit
...
This reduces the dependencies from src/lib to the rest of the code a bit.
2009-08-12 22:03:50 +02:00
Günther Brammer
2f505e2bc2
Fix buffer overflow in SetGamma when using an undefined gamma ramp
2009-08-12 19:55:51 +02:00
Günther Brammer
7621c97b92
Remove backward compatibility to very old saved C4ValueLists
2009-08-12 19:55:09 +02:00
Günther Brammer
b46f4696e9
Split C4Rect out to its own source file
...
Because much more depends on C4Rect than only C4Shape, and C4Shape uses
lots of other stuff.
Also move some other files which depend on C4Group to src/c4group, because
I'm editing the build files anyway.
2009-08-14 01:46:32 +02:00
Martin Plicht
52fe574835
SDL: Two clicks only interpreted as double click when x and y distance does not exceed 2 pixels
2009-08-12 18:55:13 +02:00
Martin Plicht
9d20fa8fe8
Mac: Exposé fix
2009-08-12 14:30:48 +02:00
Martin Plicht
5c4248b0a8
Mac: Implement CStdApp::MessageDialog and Copy & Paste
...
StdMacApp.mm implements parts of CStdApp using Objective-C
2009-08-12 14:17:36 +02:00
Martin Plicht
527d833b19
Mac: Enable Key Repeat
2009-08-12 14:16:35 +02:00
Martin Plicht
08479b6cfd
Put Mac-specific stuff into MacUtility namespace
2009-08-12 14:13:16 +02:00
Nicolas Hake
4f18edec4c
g++: Build fixes
2009-08-13 17:22:03 +02:00
Nicolas Hake
3bcfebf1f7
Fixed potential format string exploit with user-defined death messages
2009-08-13 10:32:09 +02:00
Nicolas Hake
276a5abfed
Removed default-this object parameter from a lot of functions
2009-08-12 22:44:09 +02:00
Tobias Zwick
3a202230a2
fix for FindObject and ObjectCount
2009-08-12 15:04:59 +02:00
Tobias Zwick
4211ce15f4
cleanup: script function CrewMember(obj) is obsolete
2009-08-12 10:58:55 +02:00
Günther Brammer
572d00c32e
Move all source files
...
This might make stuff easier to find.
2009-08-10 17:59:18 +02:00