Commit Graph

6686 Commits (48ae42f87e82f26e696ba62c1f4de82d90949522)
 

Author SHA1 Message Date
Sven Eberhardt 6be3796e33 Do DigOutObject callback when digging out new objects from material.
It was already done when blasting free and when digging out existing objects, but the case of digging out new materials was still missing. This helps collect firestones when digging in firestone material.
2015-01-25 14:19:39 +01:00
Nicolas Hake 185c82fd1c Enable cross-compilation to Darwin/Mac OS X
This set of changes make it possible to do a cross build targeting Mac
OS X 10.9 ("Mavericks") from a Linux host. Tools required for a build
(in addition to the standard build toolchain, obviously): otool,
install_name_tool, c4group.

Since CMake does not (yet?) support passing environment variables to
custom build commands, you should make sure to have the
INSTALL_NAME_TOOL and OTOOL variables set to reasonable values during
the entire build. Additionally, if you have not unpacked your OS X SDK
directly into the root directory (you probably shouldn't), you need to
set the SYSROOT environment variable to the root of the SDK (the
directory containing the "System" directory). Setting up a CMake
toolchain file is left as an exercise to the reader.
2015-01-25 01:23:20 +01:00
Nicolas Hake 2e1bdd742f OSX: Bundle libraries even when not compiling with XCode
We have half-arsed support for building Darwin executables with Unix
tools instead of XCode. Make it slightly more whole-arsed.
2015-01-24 23:28:33 +01:00
Nicolas Hake c1a1938b83 OSX: Stop pretending to support 10.6 and i386
OpenClonk doesn't actually support anything older than 10.8 "Mountain
Lion", so let's not pretend to support 32 bit builds and 10.6.
2015-01-23 23:52:46 +01:00
Nicolas Hake d44d7ba33e OSX: Use /bin/bash to pack game data
Since the script is using bashisms, a posixly correct /bin/sh isn't
sufficient. Explicitly use /bin/bash instead.
2015-01-23 19:22:04 +01:00
Nicolas Hake a7548cfa12 Get CMake to use tools from a native build when cross-compiling 2015-01-23 19:20:55 +01:00
Nicolas Hake d994b893ba OSX: Fix capitalization of several imports and includes 2015-01-23 18:24:31 +01:00
Nicolas Hake 53ff6da5ef Remove some OSX-specific hacks from the main CMakeLists 2015-01-23 17:15:56 +01:00
Nicolas Hake f4e95ea85c Use find_package for finding libbz2 instead of hard-coding the path 2015-01-23 17:11:23 +01:00
Sven Eberhardt c5415aa330 DarkCastle: Fix cannoneer grabbing cannon in intro. (#1248) 2015-01-22 20:44:01 +01:00
Sven Eberhardt 3d59e77f48 Do object post-load actions after global prop list denumeration. (#1240)
Post-load would access the action proplist which might have a non-denumerated prototype.
2015-01-21 23:18:07 +01:00
Maikel de Vries 4311ea9aac no FoW for Overcast and Thunderous Skies 2015-01-20 19:35:05 +01:00
Maikel de Vries 4e9f054ca5 don't incinerate clonk with fire arrow when blocked by shield 2015-01-19 21:29:38 +01:00
Pyrit 576922dd5e Fix holes in landscapes that used the Granite-rock entry before.
Added Granite-granite with index 42 to the TEXMAP.TXT
2015-01-19 20:03:11 +01:00
Maikel de Vries 237a88ce41 fix typo which makes docs compile again 2015-01-19 16:02:00 +01:00
Nicolas Hake bc7fcf5daa OpenAL <1.15: check some additional include directories
OpenAL's pkg-config database doesn't list include/AL as a location for
AL headers, but including <AL/al.h> is unusable because some systems
store the headers in OpenAL instead of AL. So check if the file can
actually be found as <al.h> and amend the include directory list
otherwise.
2015-01-19 13:39:18 +01:00
Nicolas Hake 9759f72b89 Downgrade requirements to Ubuntu Precise (12.04LTS) 2015-01-19 12:26:42 +01:00
Nicolas Hake 2ef2c637a7 Remove several instances of disabled legacy code 2015-01-18 22:59:45 +01:00
Nicolas Hake fef96eca9c Replace C4Surface::ppTex by a vector
This should improve cache coherency by having all surface tiles adjacent
instead of strewn across the heap. This will also remove an indirection
in the common case of only using one tile.
2015-01-18 22:59:44 +01:00
Nicolas Hake 57044a9eeb Move STATUS_ASSERTION_FAILURE definition to where it's actually needed 2015-01-18 21:55:16 +01:00
Nicolas Hake 4060991124 CMake: Add support for Boost 1.57.0
For some reason, even the most recent (as of this writing) CMake 3.1.0
doesn't know about Boost 1.57.0, which was released two months before
CMake. Add it to the known version list.
2015-01-18 20:50:33 +01:00
Nicolas Hake ee62586013 CMake: Fallback to the system FindFreetype if pkg-config fails
Instead of shipping our own copy of FindFreetype.cmake, use the system
one if pkg-config is not available or can't find FreeType.
2015-01-18 20:50:32 +01:00
Nicolas Hake 2b2d70d02a CMake: Update for 3.1 compatibility
CMake 3.1's if() by default now interprets quoted variable names as
strings. This is a good idea from a strictness perspective, so make it
do this even if we're in 2.8.9 compatibility mode.
2015-01-18 20:50:31 +01:00
Nicolas Hake fad70eb204 Increase required CMake version to 2.8.9
Debian Wheezy is shipping 2.8.9, and nobody is testing older versions
anyway.
2015-01-18 20:50:30 +01:00
Sven Eberhardt 9ac3bd6c1b Some new weapons for DarkCastle enemies. 2015-01-18 19:21:48 +01:00
Sven Eberhardt 3286095755 AI can use grenade launcher. 2015-01-18 19:13:10 +01:00
Sven Eberhardt 282b937a60 Fix null pointer when coniferous burns down. 2015-01-18 15:20:25 +01:00
Sven Eberhardt 4c4d4233bf Fix non-free BaseRespawn on neutral flagpoles.
It would try to buy clonks from player -1, which never worked.
2015-01-18 15:19:46 +01:00
Sven Eberhardt caec5939b0 Fix right-click buying when many items are available. 2015-01-18 15:18:39 +01:00
Sven Eberhardt 7e45475cbe Scenario saving: Concatenate multiple equal calls to CreateContents. 2015-01-18 14:28:10 +01:00
Sven Eberhardt c5af9bc7f2 Fix bomb arrow name. 2015-01-18 13:45:28 +01:00
Maikel de Vries 26aca1abe2 make the lava chunk a small light source 2015-01-18 12:50:53 +01:00
Maikel de Vries 8b5a1f7e18 fix AI test scenario 2015-01-18 12:47:00 +01:00
Sven Eberhardt 763f9de0ec Fix player knowledge in DeepSeaMining (#1239)
The section is switched when the first player joins, so the second player will initialize from the Scenario.txt of the intro section.
2015-01-17 23:10:55 +01:00
Sven Eberhardt f815d7ea6c Fix EditCursor selection and deselection callbacks when duplicating objects. 2015-01-17 22:53:21 +01:00
Sven Eberhardt 6fac0f0567 Clip AI guard range to landscape size. 2015-01-17 22:39:09 +01:00
Sven Eberhardt 4d1d869760 Add editor commands to clonks to enable enemy AI. 2015-01-17 22:36:19 +01:00
Sven Eberhardt f69872c401 AI guard range can be adjusted via drag+drop in editor.
Just select the clonk and move the corner markers.
2015-01-17 21:22:29 +01:00
Sven Eberhardt 7c19f0e0c3 Elevator adjusts case and rope position when moved in editor. 2015-01-17 21:21:27 +01:00
Sven Eberhardt 2cde706611 Object movement in editor respects Def->HorizontalFix and attachment procedure.
When moving attached objects, it will now move the attachment target along with the object. This makes moving elevator cases and wind generators a lot easier.
2015-01-17 21:19:56 +01:00
Sven Eberhardt cf9aca70fe Add callback EditCursorMoved. 2015-01-17 20:53:45 +01:00
Sven Eberhardt c00d8c7a4d Add next_selection parameter to EditCursorDeselection.
If an object is deselected due to a new object selection, that newly selected object is passed as next_selection.
2015-01-17 20:37:54 +01:00
Sven Eberhardt 49c5b22591 Remove some empty graphics files. 2015-01-17 18:22:06 +01:00
Sven Eberhardt f0cbe45afb Remove mention of "fire monsters" from docs.
Since, sadly, we don't have those :(
2015-01-17 18:10:56 +01:00
Sven Eberhardt 8dddbe5a10 Allow definitions without graphics. 2015-01-17 18:10:21 +01:00
Sven Eberhardt d33dfd6c55 Scenario Saving: Select between CreateObject/CreateObjectAbove and fix some unnecessery property saving issues.
* CreateObject for goals/rules/environment, rotated, contained and earth objects
* Allow properties to overwrite default behavior of CreateObject vs CreateObjectAbove
* Random initialization of seaweed phase instead of saving it
* Do not save color of ColorByOwner objects that have their owner color
* Fix block spacing between objects of same type if objects of different type occur inbetween but are not saved
2015-01-17 17:00:58 +01:00
David Dormagen 7e7bbf17fa fixed additive blitting of particles (#1213)
This was accidentally removed by ck in 526b97c60c
2015-01-17 11:13:08 +01:00
Pyrit 742390fe92 Change default granite texture from rock to granite. 2015-01-16 01:03:11 +01:00
Pyrit e2f50324ee Add normal maps to landscape materials. 2015-01-16 01:02:21 +01:00
Sven Eberhardt 6e99843fec Add editor helper functions to open and close stone doors and connect spin wheels. 2015-01-15 22:06:05 +01:00