Commit Graph

77 Commits

Author SHA1 Message Date
Gymnasiast 3f6990dac9 Add close button to track designs manager, closes #1807 2015-11-30 22:53:28 +01:00
IntelOrca c6056cbb6c Merge branch 'pre-release-0.0.3' into develop
Conflicts:
	src/audio/audio.c
2015-11-27 22:05:40 +00:00
IntelOrca 67b6aa7513 fix #2330: Clear button in Object Selector doesn't refresh item list 2015-11-18 23:19:25 +00:00
Duncan e36ed5e732 Merge pull request #2325 from BodrickLight/refactor
Refactor audio.c and audio.h
2015-11-18 17:33:21 +00:00
Dom Light e9b7e41635 Refactor audio_sound_play_planned 2015-11-17 23:05:24 +00:00
Hielke Morsink 68b0068a22 Resolved warnings 2015-11-17 19:40:48 +01:00
Hielke Morsink 504f551eec Avoiding the use of strlen 2015-11-17 19:40:47 +01:00
Hielke Morsink 063a568a72 Searching through rides now also checks their type. 2015-11-17 19:40:44 +01:00
Dom Light 3a8b25a0ee Sanitize audio.h 2015-11-17 01:05:14 +00:00
IntelOrca 48e3d70e57 refactor colour maps 2015-11-08 18:55:32 +00:00
Michał Janiszewski 9a981ef68f Fix variable not being shifted
When decompiled, at 0x6AA8ED, there's `shr edi,0x4`, which is not
reflected in sources.

The `type` without that shift could easily become a value large enough
to point to memory beyond object entries and modify those values. In my
case, it was modifying `RCT2_ADDRESS_OBJECT_LIST_NO_ITEMS` from 2122 to
2123 (by setting lowest bit), which luckily, is used later in
`setup_in_use_selection_flags`. For this reason, I believe it could be a
major source of other problems, possibly also recent `MAP_ANIMATION`
ones, although I haven't checked.

I also put an assert in place to validate type against max available
count.
2015-11-01 18:53:47 +01:00
Michał Janiszewski 9284930d7e Add safe_strncpy function
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
Michał Janiszewski fcd22dd8ca Memory handling fixes 2015-10-25 01:15:52 +02:00
Michał Janiszewski 11fb15bba7 Add casts for types 2015-10-22 23:51:05 +02:00
Michał Janiszewski 7d0ce00bab Strip all whitespace 2015-10-20 20:48:51 +02:00
Gymnasiast a6ee08de11 Fix filter buttons in RC designer and TD manager, clean up some strings 2015-09-11 16:21:27 +02:00
IntelOrca 4dd95c650b implement RideData4 data 2015-09-10 22:16:41 +01:00
Gymnasiast 308b086c55 Name some addresses, clean up strings ids and usage 2015-08-27 16:19:17 +02:00
IntelOrca f072440d18 add server list window (WIP) 2015-08-16 03:07:00 +01:00
IntelOrca 795c01cab5 implement utf8, part 5 2015-08-01 10:20:50 +01:00
IntelOrca 50187adc37 enable debug configuration and add optimisations to release configuration 2015-07-24 23:48:23 +01:00
IntelOrca dd107ee25c save object selection filter, closes #1599 2015-07-24 20:15:13 +01:00
IntelOrca f906391c9d remove registers from window events and changed to typed signatures 2015-07-10 01:39:16 +01:00
Duncan Frost a757f39a8c Prevent tab 0 from trying to be animated. Fixes #1529 2015-07-02 17:41:17 +01:00
Gymnasiast 2ac872dd56 Drop duplicate track names in list; use track categories when in select-by-track-type-mode 2015-06-27 13:08:29 +02:00
Duncan 2c58910f62 Merge pull request #1485 from OpenRCT2/object-selection-columns
Object selection columns
2015-06-27 09:16:57 +01:00
Duncan Frost ab7e1da84e Implemented object unload.
Refactored calls to the function. No need to pass the object type.
2015-06-26 17:45:38 +01:00
IntelOrca 2e47f2a26a object-selection-columns: finish sorting and add ride tab animations 2015-06-26 01:11:24 +01:00
IntelOrca 210ba2a04d object-selection-columns: add ride type with sort 2015-06-25 23:35:18 +01:00
Duncan Frost 2ab1e316a9 Fix using object selection during scenario
Made a small mistake where it would unload the selected objects instead of unloading the unselected objects.
2015-06-21 11:38:58 +01:00
Duncan Frost 895d4a81e4 finish implementing remove_selected_objects_from_research
Fixed bug due to freeing rct2 memory.
2015-06-19 21:34:42 +01:00
Duncan Frost 15b2360e13 Implemented object_create_identifier_name and start of last func.
Note requires modification of the strings.
2015-06-19 21:34:41 +01:00
Duncan Frost d67d9349b9 Implement setup in use selection flags. 2015-06-19 21:34:40 +01:00
Duncan Frost 07752aa1b4 Implemented free object selection flags 2015-06-19 21:34:39 +01:00
Duncan Frost 468806337c Implement more of the setup functions.
Fix bug in object counting.
Split up required and optional objects.
Corrected optional objects.
2015-06-19 21:34:39 +01:00
Duncan Frost bed75bb2cf Refactor and start implementing setup functions for object selection 2015-06-19 21:34:38 +01:00
Duncan Frost f7bbfa80a8 Start refactoring 2015-06-19 21:34:37 +01:00
Duncan Frost 7a5887f67a Fix size bug.
Implemented reset_required_object_flags and reset_selected_object_count_and_size.
2015-06-19 21:34:36 +01:00
Duncan Frost 8935503b86 Implemented select object in object selection window. 2015-06-19 21:34:35 +01:00
Robert Jordan 06525fc83b Removed duplicate strings 2015-06-14 14:51:24 -04:00
Robert Jordan 91bd595326 forgot changes to other tabs 2015-06-14 14:47:08 -04:00
Robert Jordan f988e990ea Reset selection when changing ride tab 2015-06-14 14:43:01 -04:00
Robert Jordan cbf27687cb Added ride filters in object selection 2015-06-14 12:19:54 -04:00
LRFLEW d3a6965f95 Made window_loadsave_open accept a default file name
This fixes #1231, #1245, and adds room for future work, such as porting
track saving.
2015-06-07 17:12:17 -05:00
Robert Jordan 9f9143a5c6 textbox widget 2015-06-06 17:04:53 -04:00
Robert Jordan a490284569 Renumbered strings 2015-06-05 20:16:01 -04:00
Robert Jordan c3d36c96ef Now resets scroll properly 2015-06-05 19:02:20 -04:00
Robert Jordan 6179888231 Renamed strings and removed warnings 2015-06-05 18:59:07 -04:00
Robert Jordan c9c3e66289 Object selection search
Can now search for objects in the object selection window.
2015-06-05 18:54:47 -04:00
danidoedel d9807221b8 fix number of selected items label position 2015-06-04 17:33:29 +02:00