Steve Checkoway
80698277cf
Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
...
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Steve Checkoway
1e7852ed1f
Don't crash if we're not editing a course entry.
2006-06-24 07:46:17 +00:00
Glenn Maynard
29cea74bdf
yes
2006-06-24 05:25:39 +00:00
Steve Checkoway
6b38a1bea5
TWO_PLAYERS_SHARED_SIDES.
2006-06-24 00:09:50 +00:00
Chris Danford
5e0dccf837
fix preview music
2006-06-23 17:54:48 +00:00
Glenn Maynard
d9184b84b3
don't crash if a button is pressed that's not directly mapped in the current mode (eg. EDIT_BUTTON_ADJUST_FINE)
2006-06-15 07:02:03 +00:00
Glenn Maynard
3c9897989c
GetDeviceSpecificInputString and DeviceInputToLocalizedString are
...
the same: "a string suitable for display", but just formatted slightly
differently. Handle these the same way (so hopefully a way to merge
them will become visible).
This also fixes the RageInputDevice dependency on RageInput.
2006-06-15 06:07:45 +00:00
Glenn Maynard
80c3beccb6
DeviceInputToLocalizedAndTranslatedString -> DeviceInputToLocalizedString
...
(translation is a part of localization)
2006-06-15 04:12:30 +00:00
Glenn Maynard
179c00cf40
DeviceButtonToLocalizedAndTranslatedString -> DeviceInputToTranslatedString
...
DeviceInputToTranslatedString -> DeviceInputToLocalizedAndTranslatedString
2006-06-15 03:39:25 +00:00
Chris Danford
0db99139a9
4th -> 4th notes
2006-06-14 21:03:43 +00:00
Chris Danford
51699fb757
fix compile
2006-06-14 09:57:59 +00:00
Chris Danford
a5690312ef
handle switch default cases in a consistent way: DEFAULT_FAIL at the start of the case list
2006-06-14 09:56:57 +00:00
Chris Danford
af3e1c571c
move Steps searching out of song into SongUtil so that it can be shared with CourseEntry
2006-06-13 01:10:37 +00:00
Steve Checkoway
d2f3a14495
strtof -> StringToFloat.
2006-06-12 06:42:25 +00:00
Chris Danford
8c4cedf63f
let OS handle key modifers (fixes number buttons w/ French keyboard)
2006-06-10 20:33:56 +00:00
Glenn Maynard
031c9397f3
fix record with no selection in EditMode_Full; FLT_MAX is greater than the maximum NoteRow and comes out negative
2006-05-30 17:41:26 +00:00
Glenn Maynard
7801d81596
ASSERT -> FAIL_M
2006-05-30 17:21:53 +00:00
Glenn Maynard
dde95942be
fix comment
2006-05-30 17:20:42 +00:00
Chris Danford
c6bddd9165
make autoplay available everywhere but DQ if used
2006-04-25 02:35:55 +00:00
Chris Danford
329d1397c0
fix "AutoPlay remains on for normal play even if it's only togglable in the editor."
2006-04-25 01:31:26 +00:00
Chris Danford
92605c07df
fix play starting past end of notes causes goofy looping
2006-04-24 22:03:59 +00:00
Chris Danford
d3bbde5f05
loop playback and record
2006-04-04 21:58:20 +00:00
Chris Danford
8511eb2155
fix record aborts immediately
2006-03-30 04:46:01 +00:00
Glenn Maynard
788ad134f1
This broke beat alignment, and after that was fixed, other questions
...
came up (like how to align beat effects correctly). Revert this and
fix assist tick differently.
Add GetBeatAndBPSFromElapsedTimeNoOffset, GetBeatFromElapsedTimeNoOffset,
GetElapsedTimeFromBeatNoOffset. Use them to ignore GlobalOffsetSeconds.
2006-03-29 11:12:20 +00:00
Chris Danford
7a87b1f7ef
fix noteskin not set on playback
2006-03-28 21:28:56 +00:00
Glenn Maynard
ee9c292b09
Implement GlobalOffsetSeconds in GameState::UpdateSongPosition,
...
not TimingData. TimingData is a simple data structure, and shouldn't
be affected by hardware tweaks. This is also easier to bypass in cases
we don't want GlobalOffsetSeconds.
Don't adjust assist tick by GlobalOffsetSeconds.
2006-03-28 09:28:55 +00:00
Steve Checkoway
40b44ee6b8
Fix attacks not working properly with random songs in the editor.
2006-03-19 01:59:42 +00:00
Steve Checkoway
77a8b6ab61
Use EditMode_CourseMods and remove hack from ScreenEdit.
2006-03-19 01:20:42 +00:00
Chris Danford
2fba5ff7e6
don't show step counts in Steps Information - they're already shown on the main edit screen
2006-03-18 19:49:33 +00:00
Steve Checkoway
678c74e7c1
Fix warning.
2006-03-18 08:43:15 +00:00
Chris Danford
94b0e34aee
tab cleanup
2006-03-16 21:09:36 +00:00
Chris Danford
5e60bab5ce
populate editor help based on mappings
2006-03-16 20:59:15 +00:00
Glenn Maynard
575061c4c1
cleanup
2006-03-16 07:36:27 +00:00
Glenn Maynard
e0c8a8ebc7
fix HandleSongTimer not reset
2006-03-16 07:35:47 +00:00
Chris Danford
46969bf4b6
consistent editor strings capitalization
2006-03-15 22:18:25 +00:00
Chris Danford
34b9aa17e9
use the same Play key mappings for all EditModes
...
If selection start is set, have "play" start at the selection, not at the current beat
2006-03-14 22:07:56 +00:00
Steve Checkoway
d113837cd4
Consider attacks to be at the same time if they are less than 1 ms apart.
2006-03-14 08:51:12 +00:00
Steve Checkoway
811c4d8b09
Work on course editor.
...
1. Press v to place an attack at the current location or to modify an existing attack.
2. With a selection, press m to place an attack for the duration of the selection or to modify an existing attack's duration.
3. With only the start of a selection, press m to place an attack extending to the end of the song or to ... (you get the idea).
4. With no selection, press m to set modifies for the course entry. This could go away if we stop having modifiers and just attacks that encompass the entire song (in which case it would act the same but add an attack rather than modifiers).
5. Is anyone still reading this?
2006-03-14 08:41:16 +00:00
Glenn Maynard
207973f3da
group "play"
2006-03-13 09:03:02 +00:00
Glenn Maynard
a85ba734d6
fix play_selection assertion if no selection
2006-03-13 08:59:32 +00:00
Glenn Maynard
4eb0b1f86e
wider range of speeds available
2006-03-13 07:46:02 +00:00
Steve Checkoway
14d737a085
Working on course mod editor. Add new edit mode.
2006-03-12 00:45:18 +00:00
Steve Checkoway
7e0d36ae5f
Simplify.
2006-03-11 21:35:12 +00:00
Glenn Maynard
14a87ff180
cleanup
2006-03-11 06:13:18 +00:00
Chris Danford
7ec7a906c3
finish edit renaming and handle display errors encountered during rename
2006-03-08 22:05:23 +00:00
Chris Danford
1860c6c674
consolidate Steps description validation
2006-03-08 04:03:39 +00:00
Chris Danford
ff6f781cb5
themable edit help text
...
map MENU_BUTTON_BACK
Add selction setting in menu for joystick users
2006-03-07 20:43:40 +00:00
Chris Danford
611489b1bb
map MenuInput to EditButton for joysticks in the editor/practice
2006-03-07 02:43:09 +00:00
Chris Danford
3c4087a187
fix ManageProfiles errors
...
add bThemeTitle flag to MenuRow
2006-02-13 22:45:17 +00:00
Chris Danford
cce97c40b8
move autosync logic out of Player and GameState, into a separate file
2006-02-06 01:23:25 +00:00