Günther Brammer
87e12484e7
Script: Make non-#strict and #strict behave the same as #strict 2
...
This allows some simplifications, mostly code that's just not needed
anymore.
2009-07-23 01:02:41 +02:00
Günther Brammer
51179151ff
Add Copyright and license to C4PropList
2009-07-22 16:15:18 +02:00
Nicolas Hake
a5b3e17352
C4Object: Remove numbered locals
...
Also removed some undocumented function hardcoded for Lhûnrim(?).
2009-07-22 18:31:34 +02:00
Nicolas Hake
496e795577
C4Object: Line data now properties
...
For objects with Line set, color is now stored
as an array [LineColor, VertexColor] in the property
LineColor.
If Line==C4D_Line_Vertex, the vertices of the target objects
that the line attaches to is also stored as an array [Target0Vtx,
Target1Vtx] in the property LineAttach.
2009-07-22 18:24:07 +02:00
Nicolas Hake
ab5da9cc3f
C4Object: Make parallaxity a property
...
Instead of Local(0) and Local(1), parallaxity is now stored
as an array in the property "Parallaxity" of an object.
2009-07-22 18:03:33 +02:00
Nicolas Hake
c511615376
C4Object: Visibility made a property
...
Accordingly, SetVisibility and GetVisibility have been removed.
Specify visibility like obj->SetProperty("Visibility", VIS_Allies).
VIS_Local has been renamed VIS_Select and uses an array:
obj->SetProperty("Visibility", [VIS_Select, Plr0Visible, Plr1Visible, ...])
where Plr*Visible are of type bool.
2009-07-22 16:31:09 +02:00
Tobias Zwick
0efc4bd8df
merge
2009-07-22 16:26:38 +02:00
Tobias Zwick
ebcf5328c5
more cleanup
2009-07-22 15:38:31 +02:00
Tobias Zwick
7155e38ecb
more cleanup
2009-07-22 15:27:49 +02:00
Günther Brammer
efb73a1c2f
C4Script: Remove Var and Global for good
2009-07-22 15:03:43 +02:00
Nicolas Hake
a36f317798
C4Script: AddMenuItem now correctly handles iParameter == nil
2009-07-22 14:10:59 +02:00
Nicolas Hake
9c59007af4
Removed obsolete C4Script functions, moved others to System.c4g
...
Functions moved to System.c4g:
ExtractLiquid, FlameConsumeMaterial, LaunchEarthquake,
LaunchLightning
Functions removed:
LaunchVolcano, Var, SetVar, IncVar, DecVar, SetLocal, SetGlobal,
ObjectCall, Set, Inc, Dec, GetColor, SetColor
Functions renamed:
GetColorDw -> GetColor
SetColorDw -> SetColor
GetPlrColorDw -> GetPlrColor
2009-07-22 08:48:39 +02:00
Nicolas Hake
b255abdd03
Fix undefined pointer returns from C4GameObjects::ObjectPointer
2009-07-22 03:28:21 +02:00
Nicolas Hake
d424f946d6
Script: Remove Cast* functions
2009-07-22 02:15:57 +02:00
Nicolas Hake
8fc2d2770f
C4Sector: Output meaningful messages on assert
2009-07-21 15:13:08 +02:00
Nicolas Hake
b8b87136fe
Request correct winsock version
...
WSAStartup first parameter: The high-order byte specifies
the minor version number; the low-order byte specifies the
major version number.
2009-07-21 15:12:10 +02:00
Günther Brammer
893cd20109
Merge branch 'proplist'
2009-07-21 16:46:39 +02:00
Günther Brammer
81686d441e
C4Value((long)foo) doesn't always work because int32_t can be an int.
2009-07-21 15:22:51 +02:00
Günther Brammer
2c56657a41
Merge branch 'landscape'
2009-07-21 15:22:07 +02:00
Günther Brammer
cec561796b
Fix build with gcc and/or autotools and/or mingw
2009-07-20 22:29:48 +02:00
Nicolas Hake
03f01a6129
Use operator void* to allow use of C4Value in conditionals
2009-07-20 23:45:31 +02:00
Nicolas Hake
02a06bb4f7
Consolidate C4V_Nil and C4V_Any
...
Any is now guaranteed to be 0.
2009-07-20 23:04:29 +02:00
Nicolas Hake
3a4fa70558
Make C4Command use C4Value as Data parameter
2009-07-20 22:42:38 +02:00
Nicolas Hake
6de5cb8bd0
C4Value: Fix memory leak in ctor
2009-07-20 18:22:27 +02:00
Nicolas Hake
383b263181
C4Aul: Add new type 'nil'
...
Adds a new type representing 'no value' as well as a
keyword
'nil' for accessing this type from script.
nil is not equal to any value that is not nil itself.
GetType(nil) returns C4V_Nil.
2009-07-17 04:50:50 +02:00
Nicolas Hake
dc38d170b8
Backed out changeset 43758a4bd64f (StdBuf->std::string)
...
Change introduced some weird segfaults in g++ builds.
2009-07-15 19:12:01 +02:00
Tobias Zwick
10e6174b1f
FadeDelay for longer-lasting particles
2009-07-15 15:41:03 +02:00
Tobias Zwick
1bb6778403
Cleanup: Docs update for FindObject, more funcs deleted
2009-07-15 15:17:37 +02:00
Tobias Zwick
e74c484aa9
Cleaning up: removing obsolete functions and its documentation
2009-07-15 14:41:34 +02:00
Nicolas Hake
7b1f240aaa
SEGV removed that stemmed from memset(3)ing over StdStrBuf
2009-07-14 16:48:53 +02:00
Günther Brammer
b085349e86
SDL_mixer: Don't halt all channels when halting a halted channel
...
Mix_Playing(-1) counts the number of playing channels instead of returning
that the channel -1 is not playing, and Mix_HaltChannel(-1) stops
everything.
2009-07-07 14:27:19 +02:00
Nicolas Hake
e18e51d36b
Script: Allow negative subscripts into arrays
2009-07-12 23:04:29 +02:00
Nicolas Hake
8d44dc28cd
Console: Fix directory change
...
On opening a scenario, console mode changed the working directory
to the app dir, instead of keeping the current wd unchanged.
2009-07-12 22:44:23 +02:00
Nicolas Hake
3bdb703009
Change StdBuf to wrapper around std::string
2009-07-12 18:59:34 +02:00
Nicolas Hake
61c63be6df
Removed unused functions from Standard.{h,cpp}
...
Some functions that were only used from a single location were moved to
the calling source files.
2009-07-12 02:33:58 +02:00
Nicolas Hake
14e8d4794d
Fix linux CMake build
...
Not tested: Cross compiling, might need to be implemented into CMakeLists
2009-07-11 03:14:57 +02:00
Nicolas Hake
d6337554bc
StdFile: Replace CreateDirectory
...
Removed CreateDirectory, replaced with CreatePath, which creates parent
directories recursively if needed
2009-07-10 21:33:55 +02:00
Nicolas Hake
2a38d0056d
Strip c4group of unnecessary code dependencies
...
Fixes issue #21 (c4group build failure)
2009-07-08 19:54:54 +02:00
Nicolas Hake
7a38556516
Stop C4Config from forcing work dir in debug builds
2009-07-08 18:45:03 +02:00
Nicolas Hake
8065c40ce3
Check for valid resolution on startup
...
If the configuration file specifies a resolution the driver doesn't support,
choose one with a similar area. This resolves issue #16 .
2009-07-03 02:20:28 +02:00
Günther Brammer
c1d3fbea02
Work around static initialization order fiasco
...
The C4Game::Default function should eventually be removed.
2009-06-30 22:55:06 +02:00
Günther Brammer
fbac806cc5
Merge branch 'cleanups' into default branch
2009-06-28 23:05:32 +02:00
Günther Brammer
e65f337dfd
Reject Language**.txt with a non-UTF-8 charset
...
This allows some simplifications:
- CStdFont does not have to convert to Unicode for Freetype
- the developer mode does not have to convert to Unicode for GTK+
- The EnsureUnicode function can be called unconditionally
This also switches the IRC charset fixup code to convert to UTF-8, not from
UTF-8.
2009-06-28 22:53:32 +02:00
Nicolas Hake
3c448e6798
Engine name changed to "OpenClonk"
2009-06-21 14:33:41 +02:00
Günther Brammer
1ce653fd40
unifdef C4GROUP and C4FRONTEND
...
The frontend is dead anyway, and c4group doesn't even use the affected
files. Except C4Update, where I replaced a printf with ::Log.
2009-06-17 22:07:52 +02:00
Günther Brammer
09a7f4cd07
unifdef C4ENGINE
2009-06-17 21:22:10 +02:00
Günther Brammer
6ff9c8c48a
C4Group: Do not use C4Config
...
This disables writing the maker name into the group. But this bit of meta
data will be lost anyway when we move to ZIPs.
The temp directory and registration check bits are unnecessary, anyway.
2009-06-17 21:45:41 +02:00
Günther Brammer
fb249aafcd
Move GUI code from C4InputValidation to C4GonfigShareware
...
That way, C4InputValidation can be used by C4Group as is.
2009-06-17 21:43:13 +02:00
Günther Brammer
7fe7e557e0
Let C4ConfigNetwork check for ports collisions instead of C4Network2
...
I also wanted to move the default port definitions to C4Config, but not all
are user configurable, so I left them where they are for now. The code is
still better with this change.
2009-06-17 21:41:55 +02:00
Günther Brammer
c901530ee1
Move Game.Control to ::Control
2009-06-16 00:06:37 +02:00