Commit Graph
13148 Commits
Author SHA1 Message Date
Glenn Maynard a769bc7c41 cleanup 2005-01-22 19:25:05 +00:00
Glenn Maynard cd9b66220a use MAX_NOTE_ROW, fixes 2005-01-22 19:18:42 +00:00
Glenn Maynard 4fbcbdf77c oops; MAX_NOTE_ROW was in beats 2005-01-22 19:18:02 +00:00
Glenn Maynard 9735755e00 Add MAX_NOTE_ROW, indicating the maximum row that we can represent.
We can actually go much higher; I set this to 1<<30 instead of 1<<31 so
we don't overflow when eg. adding one beat or one measure in some
algorithms.

The advantage of this over "999999" is it won't break if ROWS_PER_BEAT
is changed to a large value.

Also, since this value will typically be much larger than any actual row, it'll
quickly show up any algorithms that aren't iterating properly.

An advantage over older code using 999999 is that we don't have to
manually clamp the value to a reasonable range; FOREACH_NONEMPTY_ROW_IN_TRACK_RANGE,
etc. don't care.

An advantage of this over using -1 as a sentinel is that we don't have to
carefully check and fill in the value in every function using it.
2005-01-22 18:51:51 +00:00
Glenn Maynard 22f8eb1214 simplify 2005-01-22 18:37:50 +00:00
Glenn Maynard 3d1b62dd53 warnings 2005-01-22 18:36:34 +00:00
Glenn Maynard 4970e024f3 NoteDataWithScoring has no members; turn it into a namespace 2005-01-22 18:22:38 +00:00
Glenn Maynard 48bce52780 header cleanup 2005-01-22 18:21:06 +00:00
Glenn Maynard 3b608a20ff header cleanup 2005-01-22 17:59:56 +00:00
Glenn Maynard 24f8de5cec more use of beat indexes instead of floating point
It actually looks like almost all of NoteDataUtil can be done naturally
in fixed-point: instead of passing around floating point, converting it to
fixed point for NoteData indexing, and adding floating-point beat fractions,
just pass around fixed point everywhere, and convert beat fractions to
fixed-point (which probably happens at compile-time)
If TimingData, etc. does the same thing, things will be simpler ...
2005-01-22 17:51:46 +00:00
Glenn Maynard 77d58c0d63 "Beat rows" are really just a fixed-point representation of beats. Prefer
using them in general over beats: it's more precise (we can tell exactly
how it'll round, and we can compare them without ugly error-margin hacks),
and it's what we need to use them with NoteData.
2005-01-22 17:34:10 +00:00
Glenn Maynard 36c8a0b61a fix InsertIntelligentTaps track selection 2005-01-22 17:21:40 +00:00
Glenn Maynard 765d6019f7 cleanups 2005-01-22 16:12:31 +00:00
Chris Danford 07a26bafc4 remove unused 2005-01-22 09:01:00 +00:00
Chris Danford cfb6ef953e cleanup 2005-01-22 09:00:31 +00:00
Charles Lohr 288f34a5bd Oops, wrong screen 2005-01-22 05:53:14 +00:00
Glenn Maynard ab06bc76d0 err ... 2005-01-22 05:41:03 +00:00
Charles Lohr 0d7787b9e7 Fix: ReportStyle was not working properly 2005-01-22 05:34:02 +00:00
Charles Lohr e3b09fd0b8 Change: Metrics for new ScreenNetSelectMusic 2005-01-22 05:32:55 +00:00
Charles Lohr 3ce4a13410 Change: Way cool new ScreenNetSelect Music
Fix: Reporting Style didn't work right.
2005-01-22 05:31:35 +00:00
Glenn Maynard 8e564b0def Avoid checking for bHoldNoteBeginsOnThisBeat if the note skin doesn't
really need it.
2005-01-22 05:00:33 +00:00
Steve Checkoway 97ddc053d1 sigh, every time 2005-01-22 04:50:25 +00:00
Steve Checkoway 5a62dfefbb Update. 2005-01-22 04:45:51 +00:00
Steve Checkoway 2dec84b23f Fix compile on OS X. 2005-01-22 04:44:33 +00:00
Steve Checkoway 00e6c619b3 Fix compile on OS X. This might break *nix compile unless CRYPTOPP_UNIX_AVAILABLE is defined. 2005-01-22 04:44:10 +00:00
Steve Checkoway 5bc0f4c99b Fix warning. 2005-01-22 04:41:59 +00:00
Glenn Maynard dfe7ec00ae fix assert 2005-01-22 03:52:23 +00:00
Glenn Maynard 1d3613f161 for real this time :) 2005-01-22 03:39:39 +00:00
Glenn Maynard 754bce5c98 optimize rendering iteration 2005-01-22 03:11:29 +00:00
Glenn Maynard 032ddf0e08 Don't hold a redundant copy of the NoteData in NoteField. NoteField is
now just a renderer for NoteData.  This means we don't have to carefully
apply all changes to NoteData to NoteField.
2005-01-22 02:50:45 +00:00
Glenn Maynard 46ace22b79 continue merging NoteDataWithScoring stuff 2005-01-22 02:10:54 +00:00
Glenn Maynard c321bbe196 start merging NoteDataWithScoring and NoteField per-hold and per-tap
data into TapNote and HoldNote.  This reduces lookup costs significantly.
It's a bit simpler, though I'm not entirely happy with the resulting encapsulation ...
2005-01-22 01:37:32 +00:00
Glenn Maynard 5407f0998e merge tap result into a TapNoteResult struct 2005-01-21 22:50:13 +00:00
Glenn Maynard f19925001d unused 2005-01-21 22:43:49 +00:00
Chris Danford 864ca7bed4 split apart "GetSongCredits()" 2005-01-21 07:13:44 +00:00
Chris Danford ddab166dad fix "can't lay mines" 2005-01-21 06:47:50 +00:00
Chris Danford a3ed21da36 turn off sphere mapping on tex unit 0 after rendering 2005-01-21 06:14:20 +00:00
Chris Danford 663bd5d8b7 fix misspelling 2005-01-21 06:13:45 +00:00
Chris Danford 434d49a70b update VC6 proj 2005-01-21 06:01:18 +00:00
Chris Danford d92379cc5d update screen testing 2005-01-21 05:58:31 +00:00
Glenn Maynard 2b73f63ea8 RetryCancel -> AbortRetry
remove Dialog::cancel
2005-01-20 19:40:24 +00:00
Glenn Maynard 38c6dcbb0b ugly hack to fix crash on "retry" 2005-01-20 19:16:47 +00:00
Glenn Maynard 6b2e1e6d13 more branch conversions 2005-01-20 18:29:20 +00:00
Glenn Maynard 75c7d7ec62 jump through fewer hoops with ScreenStage 2005-01-20 18:13:37 +00:00
Glenn Maynard 65e5d35937 unneeded include 2005-01-20 17:18:51 +00:00
Glenn Maynard 59d04d5755 proper portable fallback 2005-01-20 16:05:17 +00:00
Glenn Maynard 583eaf5532 fix syntax problem in some compilers 2005-01-20 14:53:22 +00:00
Glenn Maynard cc70e8dd82 fix old sort not being selected in sort menu 2005-01-20 03:15:01 +00:00
Glenn Maynard a2e18e1f78 update 2005-01-20 03:12:02 +00:00
Glenn Maynard 5670caf20d update 2005-01-20 02:39:22 +00:00