Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 755e8f5bf5 fix compile in release 2003-04-12 20:22:42 +00:00
Glenn Maynard eb1e2a0435 use SDL_GetEvent 2003-04-12 19:03:02 +00:00
Glenn Maynard 3046f71c66 add SDL_GetEvent 2003-04-12 19:00:56 +00:00
Glenn Maynard f982d75691 Fix locking.
(Oops, I guess this is a remnant of the original test code, that did use SDL audio ...)
2003-04-12 18:10:50 +00:00
Glenn Maynard 625b1beb04 add checkpoints 2003-04-12 16:12:01 +00:00
Glenn Maynard 043d250d87 fix autoplay in courses 2003-04-12 16:10:19 +00:00
Glenn Maynard ca48082f50 comment 2003-04-12 16:09:07 +00:00
Glenn Maynard ae39d652fd Finishing from last night; thank my cable modem for going out in the
middle of a commit ...
2003-04-12 16:06:06 +00:00
Glenn Maynard ca1b94a043 LLW_SDL now handles its own SDL events, instead of being fed them
by StepMania.cpp.  This simplifies things; SM.cpp no longer has to
direct SDL messages all over the place.
2003-04-12 02:30:28 +00:00
Glenn Maynard 60dc76cff8 Add RageDisplay::Update().
ResolutionChanged() is now called by the LowLevelWindow when
the res changes, instead of the other way around.
2003-04-12 02:28:26 +00:00
Glenn Maynard 98628c554b (this is all handled in InputHandler_SDL) 2003-04-12 02:21:50 +00:00
Glenn Maynard 94836c7be1 add InputHandler_SDL 2003-04-12 02:20:38 +00:00
Glenn Maynard dfa597bbd5 Add InputHandler for SDL input types, instead of handling them as a
special case in RageInput.
2003-04-12 02:15:23 +00:00
Glenn Maynard 7d919be169 update comment 2003-04-12 02:14:00 +00:00
Glenn Maynard 483a305c6b Get rid of inline function; doesn't need to be. Reduce dependencies. 2003-04-11 15:55:20 +00:00
Glenn Maynard 4e8eb0a96f add missing header 2003-04-11 15:53:32 +00:00
Glenn Maynard 0a3da7bcba (huh? already removed these) 2003-04-11 15:53:06 +00:00
Glenn Maynard 3d0ad7955c update 2003-04-10 19:04:10 +00:00
Glenn Maynard 0e8eb7060f fix compile 2003-04-10 18:41:59 +00:00
Glenn Maynard 6e6c60858a consolidate Enable/DisableTextureWrapping 2003-04-10 18:25:17 +00:00
Glenn Maynard 753507fce8 Oops. smPostMultMatrixf was a pre-multiply.
Rename smPostMultMatrixf to PostMultMatrix; add PreMultMatrix
and alias it to MultMatrix.
2003-04-10 17:58:27 +00:00
Glenn Maynard abc65f828f modifer modes update 2003-04-10 08:49:25 +00:00
Glenn Maynard 476de3d690 fix compile 2003-04-10 08:40:40 +00:00
Glenn Maynard 62cd0a7ac5 link to ogg 2003-04-07 19:37:37 +00:00
Glenn Maynard f63ab036de fix warning 2003-04-07 04:05:38 +00:00
Glenn Maynard d821c4f1b5 add LowLevelWindow 2003-04-07 00:54:32 +00:00
Glenn Maynard 21b2110864 update 2003-04-07 00:05:06 +00:00
Glenn Maynard e8d958f170 loud 2003-04-07 00:03:00 +00:00
Glenn Maynard 1bfbc25bbf fix bSoundPreloadAll
(this makes the music wheel very slow; need a better mode, to only allow
streaming one file at a time)
2003-04-07 00:00:46 +00:00
Glenn Maynard ee6034ebeb remove magic constant
(these should probably be metrics)
2003-04-06 23:59:35 +00:00
Glenn Maynard 0fbde25415 reduce global SDLisms 2003-04-06 23:30:58 +00:00
Glenn Maynard aba0b5b3f9 fix song.h 2003-04-06 15:54:22 +00:00
Glenn Maynard 04d01d933e FIX TYPO 2003-04-06 15:53:06 +00:00
Glenn Maynard 5b748a9a9e make sure the caption and icon are set 2003-04-06 15:51:53 +00:00
Glenn Maynard 3c5c51ca54 fix SetIcon when no SDL 2003-04-06 15:48:42 +00:00
Glenn Maynard 17fdcaa0d2 fix 2003-04-06 15:07:21 +00:00
Glenn Maynard 681443260a add null loading window (not even SDL) 2003-04-06 15:05:24 +00:00
Glenn Maynard 494dddce12 Remove extra atexit() call.
Defer SDL_VIDEO_INIT as long as possible; remove extra call.

Make sure seticon() doesn't bomb if we havn't yet initialized video.
2003-04-06 00:33:35 +00:00
Glenn Maynard c41ede209c mumble 2003-04-03 21:29:14 +00:00
Glenn Maynard f99f90cc32 update 2003-04-03 00:06:30 +00:00
Glenn Maynard 20622be298 update 2003-04-03 00:01:04 +00:00
Glenn Maynard 8c51c293f4 change matrix multiplies to degrees 2003-04-02 23:37:58 +00:00
Glenn Maynard e473f337e4 make GetParam static 2003-04-02 21:58:56 +00:00
Glenn Maynard 32da97588f Use NoteFieldPositioning.
ArrowGetXPos should probably be XOffset, now.
2003-04-02 21:58:27 +00:00
Glenn Maynard 08ca2ff931 init NoteFieldPositioning 2003-04-02 21:57:25 +00:00
Glenn Maynard 58c80f3177 Add NoteFieldPositioning to GameState. 2003-04-02 21:57:05 +00:00
Glenn Maynard 6192f3da1d Add NoteFieldPositioning. This handles translating from the origin
of a note field to the position of each track.  (No new functionality yet.)
2003-04-02 21:55:54 +00:00
Glenn Maynard 9caf4b7479 whoops, silly fix 2003-04-02 20:22:50 +00:00
Glenn Maynard 64bdcec8dc Fix warning.
No need to push/pop the matrix when entering and exiting perspective;
it's done already.

No need to push/pop otherwise, either.
2003-04-02 18:24:00 +00:00
Glenn Maynard f479b703e5 add Z positioning 2003-04-02 18:15:35 +00:00
Glenn Maynard d515fba524 change rotations to degrees 2003-04-02 07:24:40 +00:00
Glenn Maynard f4429f4ddb fix crash 2003-04-02 06:07:58 +00:00
Glenn Maynard 3af4c96506 update 2003-04-02 06:07:39 +00:00
Glenn Maynard 909565b026 change rotations to degrees 2003-04-02 06:02:55 +00:00
Glenn Maynard 6bf0b0c304 Add Actor::Reset
While I'm recompiling everything anyway, move some functions out of Actor.h
2003-04-02 05:41:22 +00:00
Glenn Maynard 4d191ace3b comment 2003-04-01 20:01:14 +00:00
Glenn Maynard 69b64dfdbf implement announcer alternates, for compatibility 2003-04-01 19:46:50 +00:00
Glenn Maynard d6d82622cd implement select style comment announcer 2003-04-01 19:46:13 +00:00
Glenn Maynard f5341a0438 fix paths that end in a slash 2003-04-01 19:31:55 +00:00
Glenn Maynard faf6b2e0f8 only load stage graphic in arcade gameplay (graphics for course
mode don't exist)
2003-04-01 18:34:58 +00:00
Glenn Maynard e00b098cb5 add stage names for courses 2003-04-01 18:23:27 +00:00
Glenn Maynard 803edada70 fix a warning 2003-04-01 18:21:18 +00:00
Glenn Maynard ac506f9928 fix ScreenSelectStyle ... 2003-04-01 18:04:54 +00:00
Glenn Maynard 26cc236bca rewind the sound if preload fails 2003-03-31 22:20:11 +00:00
Glenn Maynard 971b2cba15 fix up scoring 2003-03-31 22:06:23 +00:00
Glenn Maynard af449386aa add PreloadSounds 2003-03-31 21:32:43 +00:00
Glenn Maynard 1960f42a3e fix courseentrydisplay 2003-03-31 21:31:07 +00:00
Glenn Maynard eba6e65ede log chars 2003-03-31 21:21:52 +00:00
Glenn Maynard 0ae6236f7c Add an option to force preloading. This only preloads sounds
that are loaded in advance, which excludes sample music
and some announcers.

Disable "sound volume".  That's not what that variable is for; setting
it to higher values will result in clipping on a lot of hardware, causing
people to report it as a "bug" (which it's not).  Setting it to lower values
results in lower quality sound.  To do this correctly, we'd need to add
an interface for accessing the real hardware mixer volume, which I
don't really want to do right now ...
2003-03-31 21:21:23 +00:00
Glenn Maynard ea5a77e47e log chars on font load 2003-03-31 20:53:19 +00:00
Glenn Maynard f93eeb91d4 fix MusicWheel 2003-03-31 18:32:03 +00:00
Glenn Maynard 4529d61eef fix GradeDisplay 2003-03-31 18:29:25 +00:00
Glenn Maynard f28b149ad0 simplify failure adjustment
(game options menu entry is still sometimes preempted when it shouldn't be)
2003-03-31 17:41:55 +00:00
Glenn Maynard 5c9ae0b4b1 fix a crash 2003-03-30 21:42:10 +00:00
Glenn Maynard 0b7b1cdcd2 fix numbers; this fixes several usages of _shared3 2003-03-30 21:38:22 +00:00
Glenn Maynard ab74e7e103 don't update alive time for dead players 2003-03-30 20:54:37 +00:00
Glenn Maynard c34b21d5c4 enable all players when entering the options menu 2003-03-30 20:50:51 +00:00
Glenn Maynard 85ec76ce63 fix font 2003-03-30 20:44:55 +00:00
Glenn Maynard c6369bfe21 update textinfo after each keypress, so changes don't appear lagged 2003-03-30 20:43:30 +00:00
Glenn Maynard b81825f758 update 2003-03-30 20:22:29 +00:00
Glenn Maynard c29e008586 update 2003-03-30 20:19:05 +00:00
Glenn Maynard 87d129b1a0 hopefully fix an extra2 crash 2003-03-30 20:18:46 +00:00
Glenn Maynard 07693c3d23 add sandbox 2003-03-30 20:17:59 +00:00
Glenn Maynard d267f60f80 cache update for the last snapshot 2003-03-30 20:17:41 +00:00
Glenn Maynard 848cf152c5 fix crash when lyrics are too close together 2003-03-30 20:17:00 +00:00
Glenn Maynard 95b0d3e082 add an assert 2003-03-30 19:36:57 +00:00
Glenn Maynard f903483143 add comment 2003-03-30 19:32:05 +00:00
Glenn Maynard 415f2b30da remove some old stuff 2003-03-28 09:24:09 +00:00
Glenn Maynard 8db1c70e1e add missing operator=; fixes a crash that only occurs after releasing snapshots 2003-03-28 05:23:35 +00:00
Glenn Maynard c7c02602d9 Don't modify stored courses; it's far too easy to accidentally forget
to reset them in one of the (many) exit-gameplay paths, or reset it
incorrectly.

This fixes the course selection screen crashing when there is
no music.
2003-03-28 02:25:15 +00:00
Glenn Maynard 21c4f840c7 fix tweening 2003-03-28 02:15:29 +00:00
Glenn Maynard b797c11a2d unneeded header 2003-03-28 01:34:38 +00:00
Glenn Maynard 2e8654909a Remove Invalidate and Restore from Actor, Screen and ScreenManager.
They don't do anything, and they're never called; I think they're
D3D hangovers.

Don't make Actor::DrawPrimitives pure virtual.  It's useful to make
Actors that don't draw anything, and only receive updates, to modularize
functionality, such as TimingTip.  This also makes Actor::GetCommandLength
somewhat less of a heinous hack.
2003-03-28 00:49:01 +00:00
Glenn Maynard 590827ae5f simplify 2003-03-28 00:34:59 +00:00
Glenn Maynard d8479fc99c missing header 2003-03-28 00:33:29 +00:00
Glenn Maynard e59611d9b4 simplify 2003-03-27 21:25:33 +00:00
Glenn Maynard 6e9eb566cd Don't use fscanf; it's brittle. Instead, read lines manually and use sscanf. 2003-03-27 21:23:56 +00:00
Glenn Maynard 522fbab465 Don't use DontTransliterate, so we make sure that courses always
have the original title to match against.
2003-03-27 20:43:03 +00:00
Glenn Maynard 52e2e28717 fix TransitionToEdit not being called if the lead out after the end marker
lies beyond the end of the song file
2003-03-27 20:37:45 +00:00
Glenn Maynard 2303e8cd3e supply a default constructor 2003-03-27 20:16:17 +00:00