Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 5b2e497b76 Handle speed modifiers specially, so we don't bail if we
get a weird speed.

If we *do* bail, log why.
2002-10-18 01:35:45 +00:00
Glenn Maynard 191d6aa8fd Bring ticks in edit closer to gameplay; perhaps move this to Player to
get rid of the dupe ...
2002-10-18 01:09:59 +00:00
Glenn Maynard def5791975 Remove unnecessary cast. 2002-10-18 00:59:34 +00:00
Glenn Maynard 2cef59ffd2 Now that I've done all that, I can fix this: don't leave the cursor before
the beginning of the song when escaping from play and edit.
2002-10-18 00:58:21 +00:00
Glenn Maynard a8ed1f80c1 Pull out more common code. 2002-10-18 00:53:22 +00:00
Glenn Maynard 90a69d75d5 Pull out more common code. 2002-10-18 00:45:09 +00:00
Glenn Maynard 109ce4e915 Pull out common code. 2002-10-18 00:30:00 +00:00
Glenn Maynard 11a8dbb5a6 Finally got that stupid lock cleared out ... 2002-10-18 00:14:21 +00:00
Glenn Maynard 75e27c243c /* */ 2002-10-17 23:31:17 +00:00
Glenn Maynard 47cceb5a78 Rename .sm files on save, too. Add explanation and a TODO. 2002-10-17 20:52:32 +00:00
Glenn Maynard 1e6a9d3bc3 Go to somewhat greater lengths to ensure we get a valid filename
when saving; some songs have characters in them we can't store in
filenames.
2002-10-17 20:43:47 +00:00
Glenn Maynard aba8523532 Oops. Duplication of code leads to duplication of bugs yet again. :) 2002-10-16 19:31:17 +00:00
Glenn Maynard 88a01c7ca4 Oops. 2002-10-16 19:02:01 +00:00
Glenn Maynard c6732a87a6 Fix wrapping of m_fItemAtTopOfList causing crash if we delay long enough
to need to wrap twice. (Only happened while debugging, but.)
2002-10-16 19:01:11 +00:00
Glenn Maynard 4fb80b6864 (and actually use a period) 2002-10-16 18:29:04 +00:00
Glenn Maynard e321294153 Fix hour-long endless courses. 2002-10-16 18:25:14 +00:00
Glenn Maynard 0df7451fd4 fixup 2002-10-16 03:55:12 +00:00
Glenn Maynard 7b8526af26 Reduce extra sprites in tiled images. Mild speedup to the danger
background.

The background isn't (usually) the screen size anymore, so SCREEN_*
doesn't seem to make much sense here.  Actually, I'm not sure it ever
really did, since unless the screen is 640x480, the image will get resized
anyway ... we should probably have a way of specifying the tile dimensions.
2002-10-16 03:32:18 +00:00
Glenn Maynard 74d7f20479 commented debug function no longer exists
fold out a conditional (cosmetic)
2002-10-16 00:28:01 +00:00
Glenn Maynard 1d3d8524de remove finished todo 2002-10-14 03:24:49 +00:00
Glenn Maynard 5bbbbdcf92 Remove multiple notetypes per style. Not used, just clutter now. 2002-10-14 00:28:27 +00:00
Glenn Maynard c4702a277d /* */ 2002-10-13 23:27:13 +00:00
Glenn Maynard 39bed921aa Unload font if loading a new one (fixes harmless "leak" of credits fonts) 2002-10-13 22:58:31 +00:00
Glenn Maynard 0b291313da CleanupDShow is tiny and only used in dtor, so get rid of it 2002-10-13 22:57:27 +00:00
Glenn Maynard b7ff70a24c Mostly cosmetic. Do away with m_bBackBufferLocked; it's never actually
read.  Change from ugly all-caps Windows aliases to more readable
lowercase names, etc.
2002-10-13 22:51:07 +00:00
Glenn Maynard 79050f3804 Gaaah. Head hurts.
Fix rounding error: when rect_width is 9, we want
rect_cx = pRect->left + 4.5, not 4.  This resulted in a gap between the
black quad and the gradient quad in TransitionFadeWipe, and possibly
other obscure things.  (The transition doesn't use a texture at all, so this
wasn't actually related to the bilinear filtering issue.)
2002-10-13 22:32:26 +00:00
Glenn Maynard c610050512 Remove hardcoded 640x480. Now changing WIDTH and HEIGHT works
(except for theme metrics).

Holding grave and tab simultaneously sets DeltaTime=0 (pause).
2002-10-13 21:49:38 +00:00
Glenn Maynard 4113965d91 use get/set to check bounds 2002-10-13 17:38:11 +00:00
Glenn Maynard e85ab4d5f5 fix for dumb VC6 incompatibilities 2002-10-13 17:37:29 +00:00
Glenn Maynard 5789e0800f Add #ifdef blocks and stubs to disable sound, for VTune. Hopefully these
can go away when we drop bass ...

Constness.
2002-10-13 17:30:48 +00:00
Glenn Maynard c4eb7b65b4 cosmetic 2002-10-13 06:35:17 +00:00
Glenn Maynard c68ed36f76 Make the CTextureRenderer a local, since it's freed by m_pGB, and
we can set it all up in init.
2002-10-13 05:12:40 +00:00
Glenn Maynard 71f31ef3af Fix a crash when we get a texture smaller than the movie. (This isn't
ideal; the movie will get clipped.)

Add a bunch of traces to try to track down that other annoying crash.
2002-10-13 03:36:37 +00:00
Glenn Maynard 9360874c9c Make sure we don't allow "holding" a hold note we missed completely.
(There was a short window where you could miss a hold, but still keep
it lit.)
2002-10-12 22:21:08 +00:00
Glenn Maynard cace14efba (Actually, that tap score wasn't needed, but it could be useful later, so
I won't bother to remove it.)

Don't trigger an NG if the hold tap was missed completely, and don't apply
any associated penalties.
2002-10-12 22:17:16 +00:00
Glenn Maynard 064d3f2230 Pass the initial tap note score to ChangeLife for hold notes; it's needed to
handle Oni penalties correctly. (not actually doing that yet)
2002-10-12 22:04:44 +00:00
Glenn Maynard 5f5ed86c7e Add SetTapNote (needed for another fix) 2002-10-12 21:41:15 +00:00
Glenn Maynard e5d4f980fb fix more buffer overruns; use GetTapNote/SetTapNote to simplify
some things.  (not going to try to use it everywhere yet, just using them
as convenient)
2002-10-12 21:40:55 +00:00
Glenn Maynard 813703eeab Fix another CopyRange buffer overflow. 2002-10-12 21:16:21 +00:00
Glenn Maynard b157f4c46c Fix drawing garbage (possibly crashing) when at the very bottom
of the allowable row range.
2002-10-12 21:15:41 +00:00
Glenn Maynard 05560299ec Add GetTapNote (needed for another fix) 2002-10-12 21:14:40 +00:00
Glenn Maynard 23cb6684b1 Fix buffer overflow when passing MAX to CopyRange.
(Note: the local SMTP server on the CVS box appears to have gone
down, so some CVS commit mails have probably been lost.)
2002-10-12 20:58:16 +00:00
Glenn Maynard b8b632fc76 Fix buffer overflow when passing MAX to ClearRange. 2002-10-12 19:57:18 +00:00
Glenn Maynard c868d447bf fix courses with songs not in Songs\ 2002-10-12 19:30:15 +00:00
Glenn Maynard a647089528 copy hold notes, too 2002-10-12 02:15:29 +00:00
Glenn Maynard a0ef8cc71e Fix tweening crashes. 2002-10-12 01:49:41 +00:00
Glenn Maynard 4f5377b202 quiet spurious warning 2002-10-12 01:15:39 +00:00
Glenn Maynard 27cd560b37 Fix memleak.
(This is caused by it not being clear what is "eating" pointers and what
is not.  That'd be helped a lot if the appropriate parameters were const
refs instead of non-const pointers--but the 2sand3s and 4s conversions
are being done, which prevents that.)
2002-10-12 00:39:00 +00:00
Glenn Maynard 3d8eccb8be Move ticks to a separate function 2002-10-12 00:32:47 +00:00
Glenn Maynard d0c7a7e303 cleanup: Init always allocates, ctors always zero 2002-10-12 00:22:04 +00:00
Glenn Maynard 73188fab68 Allocate the tapnote array; it's so large it's causing stack problems, so get
it off the stack.
2002-10-11 23:23:49 +00:00
Glenn Maynard fd1d2e82ed Test for hold note crossing in "4-space". This fixes rounding problems
and is much faster (converting to 4s is a little too slow to be done in
an inner loop).
2002-10-11 20:51:12 +00:00
Glenn Maynard a8869f2afe simplify (no need to cache a vector/array GetSize()) 2002-10-11 20:49:50 +00:00
Glenn Maynard ca652a6486 don't copy the same data hundreds of times for no particular reason 2002-10-11 20:47:28 +00:00
Glenn Maynard 314c3ecc39 same: remove a level of indentation 2002-10-11 18:25:15 +00:00
Glenn Maynard b90af9fdf4 all this does is remove a level of indentation; diff isn't very smart
about that.
2002-10-11 18:23:05 +00:00
Glenn Maynard cc0735ecd7 quiet warning in ddk header 2002-10-11 17:52:02 +00:00
Glenn Maynard 607271689a remove refresh dimming; it doesn't work anymore. 2002-10-03 03:24:34 +00:00
Glenn Maynard 081640a666 fix crash in credits when there are too many songs 2002-10-02 22:31:44 +00:00
Glenn Maynard dba3a3dd8e dist .vdi 2002-10-02 21:34:20 +00:00
Glenn Maynard 49f21f16e3 For tracking down Michel's problem: Reenable mode printing, print
the hr when CheckDeviceType fails.
2002-10-01 22:11:07 +00:00
Glenn Maynard 1e0e536467 Don't dist the INI; use the defaults in the source instead. 2002-10-01 21:27:42 +00:00
Glenn Maynard 1958f815b6 hopefully temporary BUGS file 2002-09-30 20:56:12 +00:00
Glenn Maynard da3d6f2aa5 update 2002-09-30 20:55:45 +00:00
Glenn Maynard f6572498a2 fix small memleak
+/* */s
2002-09-18 20:22:24 +00:00
Glenn Maynard 1682d06628 quadMask was being added twice.
+/* */s
2002-09-18 20:21:22 +00:00
Glenn Maynard 7b98747f39 fix some random corruption
make the b6 list wrap at 80 columns, since that's about where it seems
to be (didn't bother with the rest)
2002-09-18 20:15:28 +00:00
Glenn Maynard 8305a50acd Change to Y; is a global key. (Actually, so is F5, which is why I used
Y instead.)
2002-09-17 05:23:59 +00:00
Glenn Maynard 02bfd77a8a mutter 2002-09-15 03:18:18 +00:00
Glenn Maynard 36034dd5e1 GAAAH.
undo commit caused by annoying windows CVS client.
2002-09-15 03:13:21 +00:00
Glenn Maynard ba7efdb319 fix DWIPath loading for songs that have a normal layout;
some DWI's have relative paths that don't begin with ".\
 Song.cpp
2002-09-15 02:58:33 +00:00
Glenn Maynard ce2efdd9ea remove unused dialog 2002-09-13 18:36:09 +00:00
Glenn Maynard e3c59f9b0a put in a value for assert 2002-09-13 18:32:39 +00:00
Glenn Maynard 7d00e04e61 /* */ 2002-09-13 18:32:10 +00:00
Glenn Maynard c2f2f99650 move GetMainAndSubTitlesFromFullTitle to NotesLoader (only
used by them)
2002-09-13 18:17:53 +00:00
Glenn Maynard a0fb710580 ... stop asking me if you should send the crash dump and send the
crash dump ...
2002-09-12 23:01:52 +00:00
Glenn Maynard ddacccf3c0 reorganize, turn off disasm in crashdump for now 2002-09-12 22:56:02 +00:00
Glenn Maynard ac5f7f9c81 const 2002-09-12 08:51:24 +00:00
Glenn Maynard b0f4038e7f update 2002-09-12 08:37:47 +00:00
Glenn Maynard bd78e3499a Remove separation of Dance couples. 2002-09-12 08:37:12 +00:00
Glenn Maynard 0b264d276d Remove separation of Pump couples. (Rest coming; this one first
since it wasn't working.)  The couples separation stuff just isn't worth
the code.
2002-09-12 07:50:20 +00:00
Glenn Maynard 7b7fa49bd9 -/* */ 2002-09-12 07:49:26 +00:00
Glenn Maynard 86664614e9 fix harmless warnings 2002-09-12 07:47:55 +00:00
Glenn Maynard 5ca26b37c2 Remove fallback notes. More code than it's worth. 2002-09-12 07:13:25 +00:00
Glenn Maynard f7a8c0fe61 cosmetic 2002-09-12 04:40:51 +00:00
Glenn Maynard e9c2417f33 remove unneccessary includes 2002-09-11 05:53:17 +00:00
Glenn Maynard b87c4023a8 remove unneccessary includes 2002-09-11 05:45:49 +00:00
Glenn Maynard db53dc9923 add notesloader base class 2002-09-11 05:15:46 +00:00
Glenn Maynard 2237a894d2 simplify 2002-09-11 05:09:09 +00:00
Glenn Maynard c20277c8ff /* */ 2002-09-11 05:08:45 +00:00
Glenn Maynard 98cd268135 fix hold notes at the very beginning of songs 2002-09-10 23:53:51 +00:00
Glenn Maynard c35710ffbb Change "options explanation" to "option explanation", to be consistent
with "option XXX" for option screen data.

Add cast to get rid of a warning that I forgot to commit a while back.
2002-09-10 23:42:41 +00:00
Glenn Maynard cb44e7edda Invalidate cache due to addition of Pump couples loading.
Don't add songs that fail to load.
2002-09-10 22:55:12 +00:00
Glenn Maynard 767d286290 update 2002-09-10 21:34:57 +00:00
Glenn Maynard 9858e18467 also fix cdtitles 2002-09-10 20:55:06 +00:00
Glenn Maynard 3022600bf3 "i'm going to bed--oh wait, I just introduced a stupid bug" commit. 2002-09-10 11:33:08 +00:00
Glenn Maynard d3c44fbdc0 Whoops, can't cache colons, so can't fixup paths at load time. Do
it at query time instead.
2002-09-10 09:03:08 +00:00
Glenn Maynard 257697d0a9 Fixup DWI-tree song paths.
Don't prepend paths to those variables when they include a backslash,
not when they begin with a period.
2002-09-10 08:39:58 +00:00
Glenn Maynard 770d71d242 Load the DWI tree path. 2002-09-10 08:38:46 +00:00
Glenn Maynard d2ef7a72e0 Add option to specify DWI tree path. 2002-09-10 08:36:03 +00:00