Commit Graph

706 Commits (c26cfffab6d7b5cdbab5a7899632875fa3815009)

Author SHA1 Message Date
Benedict Etzel 50e16e8cfc Renamed IsWindowsVista to IsWindowsWithUAC including Windows 7 2010-11-27 14:32:48 +01:00
Günther Brammer d92b9976a1 Remove all remaining GUI elements on C4Game::Clear (#477)
This was done when removing the Screen instance, do it when clearing the
screen instance instead.
2010-11-27 02:30:02 +01:00
Tobias Zwick 0c45723460 Merge 2010-11-25 20:23:23 +01:00
Tobias Zwick 103cab8ac4 Backed out changeset: f8fdee72ee07 2010-11-25 20:23:07 +01:00
Tobias Zwick 56937d4179 IRC-chat fixes
+ Now can join #play-clonk. Anything that adheres the pattern #*clonk*
+ /help actually works now
+ /query nickname message - does not create a chat with "nickname message"
2010-11-25 19:02:23 +01:00
Günther Brammer b946751f36 Fix problems found by z33ky with g++ 4.6 2010-11-25 15:24:49 +01:00
Tobias Zwick 8f7b93162b Removed function MakeCrewMember (use SetCrewStatus)
- unbelievable how many files I have to edit for that, phew.
2010-11-25 13:57:50 +01:00
Tobias Zwick 499582d543 removed some obsolete variables in C4Object once used by the engine-HUD 2010-11-25 13:39:39 +01:00
Tobias Zwick db7486f494 removed portrait-related options from the GUI 2010-11-25 13:24:09 +01:00
Tobias Zwick 44af873931 some more translated strings (highreslandscape) 2010-11-25 13:18:24 +01:00
Günther Brammer f495350cbb Script: Remove AnyContainer, NoContainer, GlobalN, LocalN, VarN and Equal
Use Find_AnyContainer, Find_NoContainer, proplists, obj["foo"], proplists
and == instead.
2010-11-24 22:26:27 +01:00
Tobias Zwick e1450e7dcc translated string 2010-11-24 13:13:06 +01:00
Nicolas Hake 4faacde682 win64: Fetch correct update package 2010-11-18 20:45:28 +01:00
Nicolas Hake 59594a9ef2 Default all unowned ColorByOwner objects to blue (#486) 2010-11-15 12:22:08 +01:00
Nicolas Hake 427e8125b1 Fix mismatched new/delete in C4GUI::Edit::EnsureBufferSize 2010-11-09 15:18:18 +01:00
Nicolas Hake 425aa6e67a Fix mismatched new/delete in C4GUI::Edit::ClearText 2010-11-09 15:15:05 +01:00
Günther Brammer 9494b90fe8 win32: Copy, paste and type arbitrary Unicode characters 2010-11-04 02:08:02 +01:00
Nicolas Hake 0a932c656f Disabled 'League' button (#479) 2010-11-09 13:17:02 +01:00
Maikel de Vries 901186e275 Fixed breath bug (#58) 2010-10-31 19:39:06 +01:00
Tobias Zwick 3f2f5d8d3f commented out entry in player menu to save the game 2010-10-31 17:37:45 +01:00
Günther Brammer b0d9d73af6 GUI: Do not allocate the Screen dynamically, it's always used (#442)
At least according to Isilkors analysis, this should fix the crash.
2010-10-30 01:19:54 +02:00
Maikel de Vries 7d5dfa5312 Fixed #474 - rabies 2010-10-27 22:54:54 +02:00
Maikel de Vries 98c0a1d81f Cleanup bubble script and create bubbles on splash again 2010-10-25 19:14:30 +02:00
Günther Brammer 4438986167 Script: don't crash on 0[n]
The typecheck relied on the fact that nullpointers were always C4V_Any,
which is not true anymore. Instead, directly check that the array that will
be used is not a nullpointer, which aligns the check with the usage instead
of C4Value implementation details.
2010-10-25 03:40:57 +02:00
Günther Brammer fe9a13f071 Script: proplist access via foo.bar returns nil for nonexistent properties
Previously, it returned the proplist, which was neither helpful nor
intended.
2010-10-18 01:45:49 +02:00
Günther Brammer e252d91efa Remove the menu functionality from the Construct Command in favour of script 2010-10-17 21:38:56 +02:00
Günther Brammer c14ca10f89 Remove unused engine internal Explosion function 2010-10-14 23:24:16 +02:00
Günther Brammer ecb46bb188 Windows: Fix editor icons and other potential breakage related to HINSTACE
I even wrote the function for this but forgot to use it. Probably due to
hope that someone would replace that stuff with GetModuleHandle(0).
2010-10-12 00:44:22 +02:00
Günther Brammer 943143cd6b Remove C4D_Knowledge in favour of a pure script solution of some sort
The only effect of C4D_Knowledge was that unfinished objects with the flag
could not leave buildings. That can be accomplished with script callbacks
if necessary, but this will probably work differently anyway.
2010-10-11 20:40:47 +02:00
Günther Brammer 70d2256e39 Remove C4D_Magic in favour of a pure script solution of some sort
The engine didn't do anything useful with it except enforce that a player
only can have magic that has the magic magic category and not complain
about magic missing a sort category. That's not enough to justify the flag.
2010-10-11 20:30:47 +02:00
Günther Brammer 15a796a856 Remove C4D_CrewMember in favour of OCF_CrewMember
The only usage is easily replaced by Def->CrewMember.
2010-10-11 20:18:38 +02:00
Günther Brammer 418257ef26 Remove C4D_TradeLiving in favour of C4Def::NoGet
Previously, C4D_Livings without C4D_TradeLiving had an implicit NoGet. They
now have to use that flag like every other object.
2010-10-11 19:59:54 +02:00
Nicolas Hake f7588418c1 gl: Fixed incorrect delete on surface unlock 2010-10-11 18:17:58 +02:00
Maikel de Vries 860ef8b190 Removed MaxUserSelect and C4D_Select*
Since we don´t have the CR editor anymore, these categories are useless.
2010-10-08 14:00:41 +02:00
Günther Brammer b016b72d12 MSVC: Fix 'C4Fixed::operator +' : 3 overloads have similar conversions 2010-10-11 02:33:13 +02:00
Günther Brammer cd68d6ceb3 Remove the last traces of Clonk Rage from comments
Also treat every regkey as valid. It's just a bonus for old Clonk owners,
no reason Clonk Endeavour owners shouldn't get it as well.
2010-10-10 17:44:26 +02:00
Günther Brammer 25d74134c7 Support subpixel object movement in the editor
This also converts internal usage of ForcePosition to C4Real. For the
attach procedure, this should only result in smoother movements, but the
consequences for flight are less clear.
2010-10-10 18:46:23 +02:00
Günther Brammer ecf6fa550e Move viewport to landscape coordinates translation to common code
I should have done this two years ago when introducing zoom. Sorry for the
bug this has caused.
2010-10-10 18:45:00 +02:00
Günther Brammer 8723dc9fbd Change the update mechanism to load an URL based on the current version
Also open the download page in a browser when the update package download
fails.
2010-10-10 18:43:22 +02:00
Günther Brammer 16609432cb Remove Regjoinonly flag, unregistered users can now join all games
The commandline option already went away anyway.
2010-10-04 18:07:46 +02:00
Nicolas Hake 58e0e4b14d Lessen rounding errors when moving objects in zoomed editor window 2010-10-07 01:11:52 +02:00
Peewee 3f11e47642 win32: Fix incorrect EditCursor offset (#81) 2010-10-06 18:34:19 -04:00
Nicolas Hake a0130e0389 Add getopt third party library
Some build systems, particularly MSVC, don't ship with an implementation
of getopt or getopt_long in their standard library. This patch adds a BSD
licensed implementation, to be used in case there is no system provided
one.
2010-10-05 00:14:07 +02:00
Günther Brammer 9bf3288c77 Rewrite ParseCommandLine to work on argc/argv instead of a single string
Using the standard utility function on windows to split the line and the
operating system provided argc/argv on the others.

Also move the function to C4Application. It's not a huge win because the
flags are spread out between C4Game and C4Application pretty evenly, but
eventually most of them should move to a more appropriate place.
2010-10-04 21:39:19 +02:00
Günther Brammer b8f8efa2d7 Move C4GraphicsSystem::SetGamma and friends to CStdDDraw 2010-10-01 23:36:48 +02:00
Tobias Zwick e0cb527c5d removed Score.png from resources 2010-10-03 14:31:26 +02:00
Tobias Zwick cbe501596f remove hardcoded definitions for CR Western.c4f 2010-10-03 13:30:36 +02:00
Armin Burgmeier 1faab34df7 Fix MinGW build 2010-10-03 12:15:19 +02:00
Nicolas Hake 2df81a55d1 Clarify a calculation 2010-10-02 19:02:21 +02:00
Nicolas Hake 75a723ec8b fmod: Fixed incorrect sample length calculation (#437)
The crash was caused by an incorrect integer division in the sound
loader that was supposed to be a double division. Sounds shorter than
a second were reported to have zero length because of this, leading
to a division by zero in the playback code.
2010-10-02 18:48:43 +02:00