Steve Checkoway
64dd2465e2
If we have note, use it.
2006-07-31 00:29:31 +00:00
Steve Checkoway
e23ed84562
swap
2006-07-30 23:47:50 +00:00
Steve Checkoway
e36fb16502
Use a PlayerNumber when inserting taps.
2006-07-30 23:45:55 +00:00
Mike Calfin
ae8d0b689b
Disabled start menu returning to edit menu during practice. This was causing the center button in pump mode to exit practice mode.
2006-07-30 01:54:08 +00:00
Steve Checkoway
b3056eee1c
Fix mines not being triggered when being held down (for the most part). It's still possible for mines to not be triggered if the input released after the mine has passed but before the next Update() frame. This is much tricker to deal with since we can't ask if the button was held down at some time in the past It is also much harder to detect than having held down the button for an entire measure and watched mines just not be hit.
...
This should also fix autoplay misses by telling Step() exactly which row was pressed.
There are also comments in there about possible bugs in the grading/key sounds but I didn't want to change those without getting input from other devs since it does change the way we grade "jack hammers."
2006-07-28 09:05:58 +00:00
Steve Checkoway
b8ab1f7393
Fix possible crash if Player accesses the NoteData in it's dtor and the Player is a PlayerPlus. Now just treat PlayerPlus as a smart pointer to a Player with the added Load( const NoteData& ) member function. This is only a connivence class anyway.
2006-07-20 02:19:03 +00:00
Steve Checkoway
a07e194cf1
Revert. Fixes Linux build.
2006-07-18 05:51:37 +00:00
Jason Felds
366c3440d4
Fix VC8 macro redef warning. (more to come)
2006-07-18 03:56:37 +00:00
Steve Checkoway
8502fc3083
Use PlayerPlus (a Player plus a NoteData, this gives the old behavior of Player, i.e. calling Load( nd )).
2006-07-17 00:56:23 +00:00
Glenn Maynard
abf1fcec37
remove unused
2006-07-15 01:53:58 +00:00
Steve Checkoway
6ee71e464b
It looks strange having the Background menu items have no text so add some defaults.
2006-07-14 22:00:12 +00:00
Steve Checkoway
b8a3a8b0f0
Oops.
2006-07-14 21:34:17 +00:00
Steve Checkoway
39b27416b6
Don't theme file names.
2006-07-14 21:33:08 +00:00
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