Commit Graph

5104 Commits (814f80988541056a194f0538da62adc47e2d4000)
 

Author SHA1 Message Date
Günther Brammer 814f809885 cmake: USE_GTK3 defaults to off for now
The defaults should follow the settings the binary downloads use where
reasonable.
2013-03-12 02:12:26 +01:00
Günther Brammer 2d86e47c04 Fix use-after-free in C4Value::CompileFunc
C4StringTable::RegString modifies the provided StdStrBuf. Use FindString
instead, since GetPropertyByS reliably returns failure for a
freshly-registered string anyway.
2013-03-10 22:47:17 +01:00
Günther Brammer 16f3fe34e1 Use correct exception when unable to compile a static proplist
excNotFound is used to signal that the end of a list is reached. But these
error conditions in C4Value::CompileFunc signal some logic error, not
finding an end-of-list marker instead of a C4Value.
2013-03-10 22:46:32 +01:00
Günther Brammer dfc4b9e077 Increase exception-safety of C4PropListNumbered::CompileFunc 2013-03-10 21:40:22 +01:00
Günther Brammer deeb6eeba5 Clean up a forgotten C4DirectExecScript
Found by ker.
2013-03-10 17:37:30 +01:00
Günther Brammer 6b097a49c5 Some slight parser cleanups 2013-03-10 17:37:30 +01:00
Günther Brammer a384e1bdbd Make most of C4AulParse private
This finishes the transformation from a struct to share some variables
when the parser was first split into multiple functions to a C++ class.
2013-03-10 17:37:30 +01:00
Günther Brammer 7be81f78e8 C4GameObjects::ObjectPointer does not need to be virtual 2013-03-10 17:37:30 +01:00
Günther Brammer b19259a22c Switch to a better random number generator
This is already used in C4Landscape::ChunkyRandom, where it produces good
results.
2013-03-10 17:37:30 +01:00
Günther Brammer 2d7b472ab3 Script: GetID returns the prototype of an object, not the internal C4Def 2013-03-10 17:37:29 +01:00
Günther Brammer 169b3750d4 cmake: Also search for freetype version 2.4.11 2013-03-10 14:01:38 +01:00
Günther Brammer 2ef47af689 cmake: Default to a deps folder in CMAKE_CURRENT_BINARY_DIR 2013-03-10 14:01:35 +01:00
Günther Brammer 1075822af3 cmake: Don't try to create openclonk.png without convert 2013-03-10 14:01:26 +01:00
Günther Brammer 12c8b31a10 cmake: Use CMAKE_DEPENDENT_OPTION to structure the various options 2013-03-10 14:01:15 +01:00
Günther Brammer 159cfb9885 cmake: Explicitly instead of indirectly link openclonk with pthread
In practice, other libraries pulled pthread in, except for the USE_CONSOLE
build. But since there are direct calls to pthread in our code, we really
shouldn't rely on that.

Also, this should fix the USE_CONSOLE build on windows.
2013-03-10 14:00:01 +01:00
Peter Wortmann 43bbcecd99 Ignore "would block" errors from UDP sendto
Given that SimpleUDP makes no promises on delivering data anyway, it's okay
to just drop packets silently.

While I'm at it, it's probably a good idea for non-Windows system to
set sockets as non-blocking too, as well as C4NetIOUDP to be more
consistent with its handling of errors along these lines.
2013-03-07 21:26:32 +00:00
Sven Eberhardt d505c8a760 DeadlyGrotto fix DuroLava and statue head vertices 2013-03-07 22:23:27 +01:00
Sven Eberhardt 44f45a8e06 New settlement scenario in Experimental.ocf: Deadly Grotto. 2013-03-07 01:09:38 +01:00
Sven Eberhardt e5ecf33455 Experimental ruby cave: Icon and knowledge. 2013-03-07 01:09:37 +01:00
Julius Michaelis 5483072726 8f429dc50fc9b46afb/USE_CONSOLE MissionAccess: do it right.
/bin/brain not found
2013-03-03 19:41:23 +01:00
Julius Michaelis b23243124f 8f429dc50fc9b46afb/USE_CONSOLE MissionAccess: do it right. 2013-03-03 19:29:00 +01:00
Julius Michaelis b31ca73903 Don't check MissionAccess when running as dedicated 2013-03-03 17:32:51 +01:00
Sven Eberhardt cc299bd799 New experimental settlement scenario: Ruby cave 2013-03-03 17:09:49 +01:00
Sven Eberhardt 8f429dc50f GoldSeller checks more frequently 2013-03-03 17:05:53 +01:00
Julius Michaelis 06d4db2d72 Remove need for freetype and jpeg libraries building with USE_CONSOLE 2013-03-03 15:22:48 +01:00
Sven Eberhardt 7ddba1e2c2 Experimental WallKit moved to definition folder.
I need it in another scenario
2013-03-03 14:25:52 +01:00
Sven Eberhardt b8753d64f6 Fix flag ownership change to allies when original owner dies.
Change OnOwnerRemoved engine callback to also pass the ally selected as successor for the dead player.

The flag had a callback OnOwnerChange implemented. However, we already have OnOwnerChanged in the engine to do the same thing.
2013-03-02 23:38:29 +01:00
Sven Eberhardt d0933e71c7 Fix GoldSeller interval adjustment 2013-03-02 23:07:48 +01:00
Sven Eberhardt 11438f7e02 Pump cannot destroy materials any more.
Before this patch, you could destroy materials by pumping them into earth (like you could in CR). This made scenario with acid/lava obstacles rather easy.
2013-03-02 22:33:56 +01:00
Sven Eberhardt 8e19c52014 Do not check instability when converting material to solid. This fixes ice of frozen lakes immediately crumbling down due to our cool, new anti-single-pixel-code. 2013-03-02 22:33:55 +01:00
Peter Wortmann 4b63957285 Close connection if a packet can't be sent
I am still completely mystified why this seems to happen so often in
practice. Hopefully the extra logging will give us some clues in
future. And closing the connection immediately gives us a small chance
at recovering from this situation.
2013-03-02 20:51:17 +00:00
Sven Eberhardt 3a7eb5bcd6 oops. remove superfluous debug log. 2013-02-27 00:27:14 +01:00
Sven Eberhardt 6bd3646a35 Experimental BigVolcano: Some gfx+sound effects 2013-02-27 00:21:30 +01:00
Sven Eberhardt f5647d05fe Fix sound volume when using OpenAL 2013-02-27 00:20:49 +01:00
Sven Eberhardt cc44b71756 Fix SIGFPE exception on INT_MIN/-1 and INT_MIN%-1 in C4Script 2013-02-26 21:41:27 +01:00
Sven Eberhardt f727c2eca0 New experimental scenario: Volcano Escape EXTREME! 2013-02-25 21:47:55 +01:00
Günther Brammer f120fec8a0 docs: Fix some typos found by make check 2013-02-24 14:50:12 +01:00
Günther Brammer 3c0162d797 docs: Expand the index a bit 2013-02-24 14:50:11 +01:00
Günther Brammer 5fa9c39184 docs: Don't show the search box in the chm
It only works when the page was loaded from a webserver with php, and chm
has built-in search anyway.
2013-02-24 14:38:50 +01:00
Günther Brammer 9ed2fad4bd docs: Humor hhc.exe's exit code 2013-02-24 14:38:50 +01:00
Günther Brammer 991845a5bb docs: Update Makefile documentation and cygwin instructions 2013-02-21 22:41:01 +01:00
Nicolas Hake e33521c7ab Win32: Fix build without -fpermissive 2013-02-21 00:28:58 +01:00
Sven Eberhardt e6df566ebe Fix theoretical crash when several objects dug free at the same time delete each other. 2013-02-21 00:22:50 +01:00
Nicolas Hake ca6e474a15 Win32: optionally embed a build ID into crash dumps/minidump files
In order to get an embedded build ID, add a new CMake cache variable
named OC_BUILD_ID. This variable can contain an arbitrary string, but
it is suggested that you use a hierarchical string starting with your
DNS domain, reversed, as in "com.example.openclonk.arbitrarystring"
(think java packages).
2013-02-21 00:06:34 +01:00
Nicolas Hake 0c04606707 Win32: clean up crash handler pointer string format selection 2013-02-21 00:06:34 +01:00
Nicolas Hake d2719bedd6 Win32: Make crash handler show the full EFLAGS register 2013-02-21 00:06:33 +01:00
Nicolas Hake 041016d087 Win32: Make crash handler properly show modules in stack traces 2013-02-21 00:06:32 +01:00
Sven Eberhardt b02676a6e7 Auto-collect fragile objects (i.e.: Firestones) when digging.
See http://www.clonkspot.org/comic/1
2013-02-20 21:12:50 +01:00
Nicolas Hake d518669abc CPNGFile: Reduce global state
This changes a global variable to an instance variable in order to make
the CPNGFile class usable from multiple threads, as long as each thread
uses its own instance of the class.
2013-02-19 03:09:17 +01:00
Sven Eberhardt cae188a5d8 Experimental scenario tweaks [ala] 2013-02-19 00:53:07 +01:00