1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00
Commit Graph

123 Commits

Author SHA1 Message Date
Ted John
edcbfdf097 Move rct2_open_file to Context 2017-07-16 23:25:11 +01:00
wolfreak99
2155aa26fa Begin reorder of "mouse_down" window event parameters 2017-07-13 10:15:34 +02:00
Tomas Dittmann
14d14de911 Fix #5205: Prevent the paint loop becoming an infinite loop (#5771) 2017-07-05 18:00:30 +01:00
Ted John
fd2eda921f Merge pull request #5705 from Broxzier/hardcoded-values
Replace -1 with SPR_NONE for viewport sprite, sort some includes
2017-07-02 00:08:33 +01:00
Broxzier
29fb31c69c Remove 'static const' that slipped in 2017-07-01 11:45:43 +02:00
Ted John
ddb96ec267 Refactor load park result
Use a C++ struct and pass that to C.
2017-07-01 01:29:35 +01:00
rwjuk
214bf3988b Implement 'missing objects' window
Implement 'missing objects' window

Basic implementation of 'bad objects' window

Add new object_load_error.c

Add object_load_error.c

Faffing about

String stuff

Stuff

Get window basically displaying

Proper col header for object

Display object types

Display file name and explanatory message

Probably about time I added myself to the dev list

Cleanup and comments

Make bad object window work with SC6

Fix whitespace, string IDs, flip core function sense

Fix spacing in string_ids.h

Fix string ID snafu

Fix HasNoInvalidObjects() sense

Attempt to refactor this to pass data properly

Move typedefs to separate header

Fix up signatures

Add park_load_result_types.h

Clean up includes and remnants of prev implementation

Split duplication into function, free invalid entries list on close

Use pointer for object_validity_result param

Fixup string IDs

Use LoadObject() directly

Use dependency injection, fix string termination

Xcode fix, make helper function static

Fix buffer overrun and memory leak

Use SDL for clipboard functionality

Fix function & variable declarations

Rework editor_read_s6() to use new park load result type

Update changelog for #5624

[ci skip]

Fix mem leak, function signature and whitespace
2017-07-01 01:28:51 +01:00
Michael Steenbeek
44af1653a6 Replace 'center' with 'centre' (#5745) 2017-06-30 23:11:28 +01:00
zsilencer
ef6ecc8900 Set correct pan for chat sound. 2017-06-29 15:54:21 -06:00
Gymnasiast
9148b98928 Fix #667: Incorrect banner limit calculation 2017-06-29 19:18:08 +02:00
Gymnasiast
b806ded6a4 Refactor land rights window 2017-06-26 20:01:35 +02:00
Ted John
06859c90c2 Merge pull request #5708 from IntelOrca/reduce-headless-memory-footprint
Reduce memory footprint for headless instances
2017-06-26 14:41:55 +01:00
wolfreak99
27f5773e4d rename event unknown_14 to viewport_rotate 2017-06-26 10:06:58 +02:00
Ted John
4f1cfb4631 Don't load graphics for headless 2017-06-25 23:19:24 +01:00
Broxzier
9e204c11a9 Replace newly added SPR_NONE's with SPRITE_INDEX_NULL, remove new includes
needed to change its type to match .
2017-06-25 22:44:58 +02:00
Broxzier
36fb2c42d9 Replace -1 with SPR_NONE for viewport sprite, sort some includes 2017-06-25 21:13:04 +02:00
Ted John
2c07a55696 Refactor TTF into new source and remove SDL2_ttf 2017-06-24 14:50:30 +01:00
Michael Steenbeek
fef10c1f60 Clean up windows using land tools 2017-06-22 20:49:13 +02:00
Gymnasiast
d6488f34a8 Remove unused NUM_COLOURS
It's the same as COLOUR_COUNT, which _is_ used
2017-06-20 10:44:59 +02:00
Michał Janiszewski
990a153b82 Add support for benchmarking park rendering 2017-06-19 12:37:50 +02:00
Gymnasiast
4059d9e8a7 Clean up boosters, ride_type_null, max rides per entry, formatting 2017-06-14 16:06:43 +02:00
Ted John
25b6c613b9 Merge pull request #5597 from IntelOrca/refactor/nosdl/remaining-platform
Remove remaining SDL from platform code
2017-06-12 17:52:11 +01:00
Gymnasiast
a586a6e15d Fix #5596: Incorrect colours in the Map window 2017-06-12 11:59:53 +02:00
Ted John
ee7c97b7be Move scancode to key to openrct2ui 2017-06-11 23:22:32 +01:00
Ted John
cbd53f920c Create IWindowManager to open window from libopenrct2 2017-06-11 17:23:51 +01:00
Ted John
dfa1b47a4f Move keyboard shortcut code to libopenrct2ui. 2017-06-11 16:52:15 +01:00
Ted John
c8e4e6dae1 Remove usages of MAX_PATH 2017-06-11 15:42:06 +01:00
Ted John
b32f0b276d Merge pull request #5574 from IntelOrca/fix/screenshot
Fix screenshot command and refactor drawing engine
2017-06-10 20:06:26 +01:00
Ted John
47e6f1d139 Rename our version of SDL_MIX_MAXVOLUME to MIXER_VOLUME_MAX
Keep an assert to make sure its the same as SDL in the mixer. If SDL changes it, we can either change ours or convert the number proportionally.
2017-06-10 17:14:07 +01:00
Ted John
9cd8fd1498 Remove need of SDL in chat.c 2017-06-10 16:19:46 +01:00
Ted John
a9e5a58d28 Remove need of SDL in console.c 2017-06-10 16:13:07 +01:00
Ted John
97d68957f0 Fix segfault in screenshot command 2017-06-10 15:48:05 +01:00
Ted John
ca68e2bb89 Use all leading format codes for timestamp 2017-06-10 01:05:47 +01:00
Ted John
f2a5d10c31 Move timestamp to chat.c and fix issues
- Timestamp now coloured correctly.
- Timestamp now added on client side (client local time).
- Timestamp is no longer duplicated in log file.
2017-06-09 19:16:29 +01:00
Michał Janiszewski
61d38511bc Expand tabs to spaces
This commit expands tabs to spaces (ts=4) in all the files under src/
and test/.

Until now we had two wildly different code styles with C using tabs and
new C++ using spaces. It is painful to maintain as none of the commonly
used tools support this kind of setup and in reality is needless, as we
can simply convert all the sources to spaces and have opened PRs do the
same, where needed.

Additionally, trailing whitespace has been removed.
2017-06-06 23:46:14 +02:00
rwjuk
f0dec49e6d Add RCT2 address comments
[ci skip]
2017-06-06 13:48:06 +01:00
rwjuk
be0d09d6ac Name sub_6E7FF3() 2017-06-06 00:51:34 +01:00
rwjuk
dbd03257d9 Name sub_688956() 2017-06-06 00:51:34 +01:00
rwjuk
df4b150f92 Name sub_689174() 2017-06-06 00:47:08 +01:00
Richard Jenkins
b492aa544f Name sub_684AC3() 2017-06-06 00:47:08 +01:00
Gymnasiast
dd8a0847e1 Replace TOP_TOOLBAR_CLEARANCE with TOP_TOOLBAR_HEIGHT 2017-06-02 16:34:30 +02:00
Gymnasiast
fad3c11827 Create define for top toolbar clearance and fix #837 2017-06-01 22:22:49 +02:00
Michael Steenbeek
9b041e0018 Name some sub_hex functions 2017-06-01 22:03:14 +02:00
Michael Steenbeek
7d9acca1e0 Create define for max ride types per ride entry, closes #5524 2017-06-01 22:00:11 +02:00
Michał Janiszewski
79d76759bb Fix #5516: Update copyrights for 2017
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Ted John
bf16951341 Fix #5522: Clicking Player Name field results in crash 2017-06-01 17:38:57 +01:00
Ted John
e2a7189663 Do not use SDL_Colour for gPalette 2017-05-29 22:38:44 +02:00
Ted John
0440c3deea Clean up audio.cpp 2017-05-29 22:38:43 +02:00
Ted John
bd9839ff50 Get the game working
Mostly just needed to resolve screen size which is now retrieved via ui context.
2017-05-29 22:38:43 +02:00
Ted John
7163973bd2 Start moving code from OpenRCT2 to Context 2017-05-29 22:38:42 +02:00