Armin Burgmeier
7357125368
Make C4Material.cpp independent of C4Game
...
This allows compiling and linking with it without pulling in whole
C4Game. This is useful for the mape map editor.
The only place where C4Game was used in C4Material.cpp was in
CrossMapMaterials where the name of the earth material is read from
Game.C4S. The code has been changed such that the earth material name is
now a parameter to the CrossMaterialMap function.
2013-01-14 02:14:39 +01:00
Armin Burgmeier
3420b2a9a2
Move C4ScenarioSection code from C4Scenario.cpp into C4ScenatioSection.cpp
...
This allows compiling and linking with C4Scenario.cpp without having to
pull in whole C4Game.
2013-01-14 02:14:37 +01:00
Armin Burgmeier
bab0e4bb3c
Show correct material color in preview
2013-01-14 01:41:22 +01:00
Armin Burgmeier
98c9ec7734
When rendering the generated map in a pixbuf, apply rowstride correctly
...
Current behaviour could lead to crash in case of non-square images whose
width was not a multiple of 4, i.e. rowstride != width.
2013-01-14 01:41:22 +01:00
Armin Burgmeier
e8076221df
Return the correct image width of the generated map
...
Before the rowstride was returned as actual image width
2013-01-14 01:41:22 +01:00
Armin Burgmeier
cc4f62a327
Fix a memory leak in mape_texture_map_load_textures()
2013-01-14 01:41:22 +01:00
Armin Burgmeier
d2729e17e7
Make average texture color available in mape, and set it from loaded textures
2013-01-14 01:41:22 +01:00
Armin Burgmeier
b6bcc0d36e
Make a texture's average color able to be set externally
2013-01-14 01:41:22 +01:00
Armin Burgmeier
26143ededc
Load the default textures for all materials
...
so that materials without a proper tex= line are rendered correctly
2013-01-14 01:41:21 +01:00
Armin Burgmeier
8ce4b2472b
Honor configured map size correctly
2013-01-14 01:41:21 +01:00
Armin Burgmeier
64c78f1674
Show a thumbnail of the textures in the textures view
2013-01-14 01:41:21 +01:00
Armin Burgmeier
f8a61b4a00
Adapt for OpenClonk file extensions
2013-01-14 01:41:21 +01:00
Armin Burgmeier
b2be39b576
Handle-ify the random seed setting
2013-01-14 01:41:21 +01:00
Armin Burgmeier
7f452643aa
Add mape files to .gitignore
...
Conflicts:
.gitignore
2013-01-14 01:41:10 +01:00
Armin Burgmeier
4b4da8646b
Handle-ify the mapgen call
2013-01-14 01:40:54 +01:00
Armin Burgmeier
662d9bc4f4
Use the icons that come with OC for mape
...
gdk-pixbuf-csourcing them from the .ico files in a build step.
2013-01-14 01:40:47 +01:00
Armin Burgmeier
257db99165
Merge remote-tracking branch 'new/master' into mape
...
Conflicts:
CMakeLists.txt
src/graphics/C4Draw.h
2013-01-14 01:38:03 +01:00
Tobias Zwick
d018920f53
if Crew is not specified, default to Clonk=1 in the scenario.txt
2013-01-13 22:08:30 +01:00
Nicolas Hake
016f626cbe
planet: Normalize line endings
2013-01-13 19:00:12 +01:00
Armin Burgmeier
2d3a4981bf
map creator: don't crash when using a template within itself ( #534 )
2013-01-13 18:19:32 +01:00
Tobias Zwick
28e2bdbb92
fix #724 : revers the order in which GetCrew(plr,index) returns the crew
2013-01-13 15:45:51 +01:00
Tobias Zwick
65d50da83f
cleaned up obsolete entries in scenario.txt
2013-01-13 15:45:01 +01:00
Tobias Zwick
6dc75fb22a
documentation -> link to git repos in header
2013-01-13 15:40:28 +01:00
Tobias Zwick
b85b08687f
fix #907 : name of the construction site is not localized
2013-01-13 14:16:43 +01:00
Gabriel
f4d8d81a70
Changed actmap.xml "Facet" entry to coordinates.
...
Replaced "Facet" with "X", "Y", "Wdt" and "Hgt".
Signed-off-by: Tobias Zwick <newton@westnordost.de>
2013-01-13 14:07:27 +01:00
Martin Plicht
379cd1c210
StdStrBuf::AppendFormatV: Pass copied va_list to vsnprintf so the second iteration of the while loop does not crash
2013-01-13 11:31:13 +01:00
David Dormagen
7ba10ca3cf
added IsPointInRectangle(point, rectangle) to System.ocg/Math.c
2013-01-12 18:15:51 +01:00
David Dormagen
00d5ffea03
added LargeCaveMushroom and Cave
...
the Cave-dummy-object has a Place() method which places a cave
2013-01-12 18:15:51 +01:00
David Dormagen
1cd7ffec6a
added a FindLocation function in System.ocg/FindLocation.c
2013-01-12 18:15:50 +01:00
Günther Brammer
864c5c7ea8
copyright notices update 2012
2013-01-12 16:31:40 +01:00
Nicolas Hake
a619b4b6ed
c4group: Fix incorrect swprintf usage
2013-01-11 23:41:58 +01:00
Tobias Zwick
0d0df683d8
add WindowsGamesExplorer.xml to .gitignore
2013-01-08 23:52:45 +01:00
Tobias Zwick
d0a6bb099f
fix #792 : wouldn't load Overlay.*.png
2013-01-08 23:52:45 +01:00
Günther Brammer
08f86c2038
Script: continue in a do-while loop jumps to test instead of start of loop
...
This matches C and other languages.
2013-01-08 21:21:11 +01:00
Gabriel
8bce48f166
Fixed parameters and text in SetGamma.xml, Schedule.xml and Effects.xml
...
I also managed to get rid off the extra " automatically inserted at the end of the Schedule examples, by adding a <funclink></funclink> after the last ". The string is not highlighted green now, but it not even was before.
Signed-off-by: Tobias Zwick <newton@westnordost.de>
2013-01-02 22:45:31 +01:00
Sven Eberhardt
58ea47a4fd
Added support for function pointers to ScheduleCall/AddTimer/ClearScheduleCall/RemoveTimer
2013-01-02 00:50:01 +01:00
Sven Eberhardt
4c44e4cc25
Fix some docs errors in GetColor and Sort_Random.
2013-01-01 15:40:48 +01:00
Günther Brammer
41c88ba863
Use _snwprintf instead of swprintf
...
Apparently the C standard committee and Microsoft couldn't agree on how
swprintf should work.
We previously tried to work around the resulting breakage, but I just got
the following compilation error. It's really better to avoid that function
entirely. Since we only used it in windows-specific code, the
windows-specific _snwprintf is a nicely compiler-independent replacement.
src/platform/PlatformAbstraction.h: In function ‘int swprintf(wchar_t*, size_t, const wchar_t*, ...)’:
src/platform/PlatformAbstraction.h:243:12: error: redefinition of ‘int swprintf(wchar_t*, size_t, const wchar_t*, ...)’
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/swprintf.inl:30:5: error: ‘int swprintf(wchar_t*, size_t, const wchar_t*, ...)’ previously defined here
2012-12-31 22:03:12 +01:00
Günther Brammer
6e4b5bd0ca
Don't crash on Call()
2012-12-31 22:03:12 +01:00
Günther Brammer
2d05c9501c
Make StdSync.h compile with neither windows nor pthreads again
2012-12-31 22:03:12 +01:00
Günther Brammer
d5c1cb8c51
Remove some unused variables
2012-12-31 22:03:12 +01:00
Günther Brammer
6a6190564f
Remove some forward declarations that are already in C4Prototypes.h
2012-12-31 22:03:12 +01:00
Sven Eberhardt
6e85a7a5fc
Fix SolidMasks not moving objects if the top left of the landscape was solid
...
A missing fixed conversion let the shape check happen at or around position 1/1 instead of at the actual object position.
Also removed a redundant contact check.
2012-12-31 15:56:02 +01:00
Julius Michaelis
b0015b8f1d
Update .gitignore
2012-12-30 21:29:21 +01:00
Armin Burgmeier
c3c148d53a
Add CreateParticleAtBone script function
2012-12-29 00:06:30 +01:00
Armin Burgmeier
84c43f9a1d
Draw particles with subpixel precision
2012-12-28 19:28:39 +01:00
Armin Burgmeier
e03c980038
Linux: Fix a crash when no primary output is specified
2012-12-28 17:32:12 +01:00
Nicolas Hake
3c9198876c
Win32: Mark OC "DPI aware" ( #891 )
...
Technically this mark is incorrect; we do not handle things differently
on high DPI settings. On the other hand, marking OC DPI aware means that
Windows won't try to scale our drawing, clipping menus and rendering in
the process.
Somewhere in the future, OpenClonk should also add proper DPI awareness
and change the default zoom and menu scaling to match.
2012-12-24 14:44:41 +01:00
David Dormagen
4dcc784d35
do not pass controls to disabled cursor anymore (i.e. via SetCrewEnabled)
2012-12-22 17:11:06 +01:00
David Dormagen
8f2058e55b
adjusted PathFree2 to return the first point on the line from point1 to point2
...
before, when point1 was f.e. more to the right, PathFree2 would swap the points and return an unexpected point
2012-12-22 16:48:50 +01:00