1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 19:25:12 +01:00
Commit Graph

36 Commits

Author SHA1 Message Date
Michael Steenbeek
ce8d9cc71b Rename map_element to tile_element 2017-10-31 19:59:06 +01:00
Michał Janiszewski
8fd2266bda Refactor includes (#6512)
* Refactor Intent.h inclusion

* Use forward declaration of ITcpSocket

* Remove unused include

* Forward declare rct_ride_entry

* Remove unused headers

* Forward-declare rct_drawpixelinfo

* Remove unused headers

* Lower header include from header to source file

* Reduce included headers

* Reduce includes
2017-10-19 10:01:05 +02:00
Michael Steenbeek
7f9c25a7a9 Use constant for LOCATION_NULL, split off location stuff to Location.h 2017-10-13 22:23:07 +02:00
Michael Steenbeek
0fb5f186ee Do not hardcode music length 2017-10-02 21:40:49 +02:00
Michał Janiszewski
00fd18809c Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
Michał Janiszewski
d698ad1100 Convert NULL -> nullptr in C++ 2017-08-15 11:51:56 +02:00
Michał Janiszewski
32407868cc Fix C mangling 2017-08-10 13:42:27 +02:00
duncanspumpkin
18d082053e Rename cpp files to use TitleCase 2017-08-04 18:12:54 +02:00
Ted John
8b2eb8a13e Move screen variables to OpenRCT2.h 2017-07-29 20:29:29 +01:00
Ted John
e6e503a853 Move path related functions to Context.cpp
- rct2_init_directories
- get_file_path
2017-07-29 20:29:26 +01:00
ζeh Matt
d45044239e Fix #5977: Custom music files not showing up in music list 2017-07-24 17:08:10 +02:00
rwjuk
2fb1e40f1a Guard against nullptr in AudioMixer.cpp 2017-07-05 09:32:50 +02:00
Gymnasiast
2f3b5d1c7a Add IDs for null sound IDs 2017-06-25 20:45:38 +02:00
Michael Steenbeek
1f00469b26 Replace free+null with SafeFree, allow freeing NULL
free(NULL) is perfectly fine, no need to check
2017-06-22 12:49:33 +02:00
Ted John
7e9f7df7d1 Use standard platform defines 2017-06-12 18:01:51 +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
94e982289e Fix openrct2-cli build
By using a dummy audio context, we can now make openrct2-cli start a headless instance without any SDL2 calls. SDL2 is still a dependency until we remove out the input code to openrct2-ui.
2017-06-04 00:18:26 +01: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
ee9aa55083 Fix more warnings 2017-05-29 22:38:45 +02:00
Michał Janiszewski
e670a386ba Add cmath include to AudioMixer for std::pow 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
e426c70bbc Get moved audio code linking 2017-05-29 22:38:43 +02:00
Ted John
d206d181f2 Move audio code to UI project 2017-05-29 22:38:43 +02:00
Ted John
175606ae52 Create new audio context interface 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
f736e8ff96 Move more platform code to UiContext 2017-05-29 22:38:42 +02:00
Ted John
75e0c94082 Fix mute / unmute logic 2017-04-30 18:03:25 +01:00
Ted John
fb2c835d52 Include new config header 2017-02-18 15:45:10 +00:00
Ted John
6efb94bbe4 Prevent C++ exceptions when getting custom.wav info 2017-02-12 13:32:39 +00:00
Ted John
7671b21682 Convert audio.c to C++ so RWops can be removed 2017-02-12 10:40:32 +00:00
Ted John
0d51bdde3f Fix broken code alignment 2017-01-14 23:40:46 +00:00
Broxzier
60603ae10a Use types from common.h 2017-01-14 12:37:31 +01:00
Michał Janiszewski
0a36af19e4 Mark classes as final to help devirtualisation 2017-01-13 12:12:50 +01:00
Ted John
ab4bb3101c Use static inline 2017-01-12 18:29:29 +00:00
Ted John
e67d8b4122 Use inline instead of static for header C functions 2017-01-12 12:28:19 +00:00
Ted John
25bc798ff8 Move contents of src into project sub directory 2017-01-04 17:44:12 +00:00