Martin Plicht
318d69ac62
mac: Add ocs bundle type so ocs directories will be recognized as Clonk scenarios as well
2011-03-17 12:00:26 +01:00
Martin Plicht
12f2ca9c2e
mac: Restore addon-installation behaviour + Open scenarios contained in Reloc paths
2011-03-20 07:04:49 +01:00
Martin Plicht
72c12d33e0
config: Add General.OpenScenarioInGameMode so one can double-click scenarios to open them in regular game mode.
2011-03-15 04:44:32 +01:00
Julius Michaelis
a1d8a465da
Fix C4Viewport::SetZoomLimits and #259
2012-03-19 15:10:12 +01:00
Julius Michaelis
489255f7b5
Editor mode: Allow moving objects which are selected but covered by other objects
2012-03-17 18:10:36 +01:00
Sven Eberhardt
6b203c2fe1
MSVC compile warning fix
2012-03-18 17:25:27 +01:00
Sven Eberhardt
fa2b8489fa
Fix menu to scenario script callbacks
2012-03-17 14:26:58 +01:00
Julius Michaelis
dee0811b23
Add an option to select an arbitrary object under the cursor via context menu to windows console mode
...
Follow-up for 73a05d70b206
2012-03-15 13:58:56 +01:00
Günther Brammer
9f0370f26c
win32: fix infinite recursion in editor viewport initialization
...
Even the most trivial of code moving can result in bugs.
2012-03-15 15:58:32 +01:00
Julius Michaelis
bb78ea79e7
Fix typo previous rev c18fa35abd02 + conditionally exclude C4UpdateDlg.h/cpp from build
2012-03-14 23:28:44 +01:00
Julius Michaelis
14251a7a31
Fix erroneous use of C4UpdateDlg
2012-03-14 22:53:05 +01:00
Günther Brammer
67cc074f95
C4Include: Include platform headers before our headers which depend on them
2012-03-14 01:13:11 +01:00
Günther Brammer
b895bbad31
Consolidate some random platform abstraction functions into a single file
...
That way, the windows variants can be used without requiring the Win32
C4Window implementation.
2012-03-12 20:43:27 +01:00
Günther Brammer
1929e8d779
linux: add CLOEXEC flag to miscellaneous calls
2012-03-05 02:48:27 +01:00
Günther Brammer
3755a36dd1
linux: Add SOCK_CLOEXEC to socket calls
2012-03-11 00:50:51 +01:00
Günther Brammer
b4fd8fcd15
linux: Add O_CLOEXEC to various open calls
...
This should prevent some file descriptor leakage from forks that
some libraries we use do.
2012-03-05 01:33:02 +01:00
Günther Brammer
4bc309122d
Refactor C4Viewport::Init and C4ViewportWindow::Init a bit
2012-03-04 22:45:00 +01:00
Günther Brammer
ea66890086
win32: Move fullscreen and viewport WndProcs to C4WindowWin32.cpp
2012-03-04 22:41:35 +01:00
Günther Brammer
8e8e965b8b
win32: #define _UNICODE
...
We apparently do not use any of the C library function this affects, so
this only silences some warnings some versions of some windows headers
produce when only UNICODE is defined.
2012-03-04 19:16:30 +01:00
Günther Brammer
3ec624bb7a
win32: Clean up some leftover old frontend User Messages
2012-03-04 19:15:16 +01:00
Günther Brammer
3b9dd7b487
win32: Remove some cruft from the c4group resource.rc
2012-02-14 22:49:26 +01:00
Günther Brammer
ae322aa847
Remove some dead code
2012-03-04 21:44:20 +01:00
Günther Brammer
89bf0fc35a
Remove obsolete C4ConsoleGUI::SetCaption wrapper
...
The old windows editor is gone and doesn't need to find the engine with
FindWindow anymore.
2012-02-29 23:49:45 +01:00
Günther Brammer
9c186de23c
Version.txt and C4Version.h cleanup
...
Removed unused C4SHORTVERSION and C4EDITORCAPTION, replaced unset C4XVERBUILD
with C4XVER4, and more clearly separated the configuration from the derived
values.
2012-02-29 23:47:32 +01:00
Günther Brammer
19eefbc777
Move Gammaramp code from CStdGL to C4AbstractApp
...
The windows code now has to delegate to StdD3D like it does for the
resolution setting, but for the other ports the code fits much better in
the app source files.
2012-02-28 20:40:19 +01:00
Günther Brammer
b7f7c933b1
Remove unused Application.DoNotDelay
2012-03-11 23:06:23 +01:00
Günther Brammer
afe5411709
linux: Replace Application.Location with readlink("/proc/self/exe")
2012-03-11 23:01:21 +01:00
Günther Brammer
b4439ac1b7
Remove unused C4AbstractApp::ClearClipboard
2012-02-28 01:37:26 +01:00
Günther Brammer
6126df616c
Make engine compile with debugrecs again
2012-03-11 17:52:00 +01:00
Armin Burgmeier
6a0b0d95b7
Treat embedded images as one entity for text progress
2012-03-13 21:28:09 +01:00
Armin Burgmeier
e0d56c48a0
Fix a crash when showing umlauts in menu items with text progress
...
Multibyte UTF-8 sequences were torn apart but the text progress advancement.
2012-03-13 21:24:24 +01:00
Armin Burgmeier
462574f681
Remove debug log in C4ValueProviderLinear::CompileFunc
2012-03-12 23:41:34 +01:00
Armin Burgmeier
86af00a313
Fix the build
2012-03-12 23:41:07 +01:00
Armin Burgmeier
2de0a031c4
Fix loading mesh animations in scenario saves
2012-03-11 22:49:59 +01:00
Armin Burgmeier
97cfd81133
Support mesh graphics and ingame objects as menu item graphics
2012-03-11 00:06:44 +01:00
Günther Brammer
5c235cc23e
Savegames: Fix loading of global variables ( #726 )
...
The global variables ended up with the temporary name list created during
load that didn't necessarily contain all variables or even in the right
order. As far as I can tell, this happened since 2005, but nobody noticed
because the list of global variables didn't tend to change between save and
load.
2012-03-10 22:45:42 +01:00
Günther Brammer
dfea0914a9
Merge the functions pointer branch
2012-03-09 17:42:48 +01:00
Julius Michaelis
5716bb1e47
C4AulScript::DirectExec: Throw on parsing errors, too, when fPassErrors is set.
2012-03-09 11:45:25 +01:00
Julius Michaelis
ed5d615aab
Check for OpenGL Version 1.2 and two functions from 1.3 instead of requiring full 1.3 ( #692 )
2012-03-03 23:25:50 +01:00
Günther Brammer
71e108f16a
Start of a C4Script API third party programs could use
...
This is very experimental, subject to change, and the single function not
at all useful yet.
2012-03-04 21:23:11 +01:00
Armin Burgmeier
fa7e922321
Fix rendering of mesh pictures to non-square target rectangles
...
This is still not perfect yet, but I suppose to get better we'd need
to compute the bounding box of the transformed mesh.
2012-03-03 01:45:46 +01:00
Maikel de Vries
d1b8057382
Fix build for 8ac3339bf901
2012-03-02 22:48:25 +01:00
Julius Michaelis
cb6eb060cc
Add a dialogue for windows which can be displayed when the graphics engine initialisation failed
...
The dialogue has fields for resolution and a checkbox for fullscreen mode
2012-02-28 18:28:16 +01:00
Armin Burgmeier
893fb4bbed
Make overlays on picture graphics work again
...
This was partly broken by 427cf61d729a. However, already before that,
the size of the overlay was depending on the ingame size of the object
on whose picture the overlay was being drawn. This didn't make much sense
and now the size of the overlay is equal to the area on which the picture is
drawn in the first place.
2012-02-26 21:44:00 +01:00
Armin Burgmeier
fea6209365
Fix drawing of non-default graphics in picture overlays
...
This was broken by 427cf61d729a.
2012-02-26 21:09:42 +01:00
Armin Burgmeier
7f5f916e76
Draw only partial set of faces for buildings in construction
2012-02-26 01:09:42 +01:00
Armin Burgmeier
de67769065
Fix crash when C4Draw::Blit was called with NULL source surface ( #721 )
2012-02-26 01:01:55 +01:00
Armin Burgmeier
8f7f5cc1f1
Allow dragging of objects from FoW if they have C4D_IgnoreFoW set ( #720 )
2012-02-25 22:15:39 +01:00
Günther Brammer
6486ea9e19
Script: Disallow "new Clonk {}" for now
...
Eventually, "new Clonk {}" will create a C4Object. Prevent anyone from
using it before then.
2012-02-25 22:10:03 +01:00
Armin Burgmeier
09e0e48290
When starting to drag an object, use the object at mouse down time
...
and not at the time the drag is started, which is a bit later, after the mouse
has been moved a few pixels in order. This makes it easier to start dragging
when hitting the drag object on an edge.
2012-02-25 22:05:47 +01:00