Commit Graph

26337 Commits

Author SHA1 Message Date
Glenn Maynard 5318d0670d Previously, BeginStage was called in SGameplay and FinishStage was called
in each place gameplay exits.  This incremented the stage number in SSM,
and was brittle: FinishStage was sprinkled in many odd places.  Do both
in SGameplay.

This increments the stage number as soon as gameplay ends.  This only
affects evaluation.  Use the stage number from StageStats there, instead
of the current stage, and adjust branches.  During evaluation, the
game is on the upcoming stage and displaying old data for the last
stage, instead of the stage continuing through evaluation.

This also moves a bunch of scoring-related stuff out of SEvaluation,
to the end of gameplay, where it belongs.  Eval is almost const, and things
won't break like they would before if Eval is not used.
2007-04-24 01:35:32 +00:00
Glenn Maynard 2bcd5a644f use enum_add2 2007-04-24 01:28:53 +00:00
Glenn Maynard 7de6bd605c revert IsStagePossible; not sure yet 2007-04-24 00:44:51 +00:00
Glenn Maynard e4bace37c8 remove m_StageType 2007-04-24 00:42:37 +00:00
Glenn Maynard 9a26797ebb use m_Stage 2007-04-24 00:40:14 +00:00
Steve Checkoway cb6b092431 Install the whole Data directory. 2007-04-24 00:38:16 +00:00
Glenn Maynard 4a872ab329 use m_Stage 2007-04-24 00:36:14 +00:00
Glenn Maynard 2f8e621439 store stage in StageStats 2007-04-24 00:25:54 +00:00
Glenn Maynard 7bb38e2ede Stage_Invalid -> StageType_Invalid 2007-04-24 00:16:39 +00:00
Glenn Maynard 25796bd187 remove IsStagePossible 2007-04-23 23:42:27 +00:00
Glenn Maynard bee83bf4e8 revert exceptions; these should not be on 2007-04-23 23:08:07 +00:00
John Bauer ee0c5123b1 Fix the build: standard macro arg lists use ... and __VA_ARGS__ but do
not allow specific names for the arg lists.
2007-04-23 16:35:17 +00:00
Steve Checkoway 25d66981ec Mount StepMania.app/Contents/Resources/SMData.smzip, if it exists. This makes SM installable as a single drag and drop application bundle. 2007-04-23 06:27:02 +00:00
Steve Checkoway 6d21c77474 make dist will now correctly make a source tarball which will also contain the SMData.smzip. 2007-04-23 06:25:08 +00:00
Steve Checkoway acb88e2f91 Look in the application directory and in DATADIR for SMData.smzip. This way the distributed binary can be run its directory or if compiled from source, the data may be installed and we will look there instead. For development, of course, SMData.smzip should not be installed as we should be using the files in Themes and so forth. One easy way to insure that is to set the prefix somewhere like /tmp when developing so that it will look for /tmp/share/stepmania\ cvs/SMData.smzip, which will not exist. 2007-04-23 06:23:27 +00:00
Steve Checkoway 3e53607dbd Use the new forms of AC_INIT and AM_INIT_AUTOMAKE. Do not bother defining the package and version variables, we do that ourself. Add the datadir to the CPPFLAGS. 2007-04-23 06:18:23 +00:00
Steve Checkoway 9f9b4403d9 Perl script to package up the default data into SMData.smzip. 2007-04-23 06:10:29 +00:00
Steve Checkoway 4c614ae701 The file drivers are one of the few things that can be accessed before LOG is set up, guard all accesses. 2007-04-23 05:52:51 +00:00
Steve Checkoway 9681c7fb3f Then stick it some place it only gets included for the Windows build. 2007-04-23 02:54:42 +00:00
John Bauer ac6d86c36a Unremove needed include.
(VC8 definitely needs it.)
2007-04-23 02:51:28 +00:00
John Bauer 2427d793dd Fix the windows build of lundump.c. 2007-04-23 02:50:04 +00:00
John Bauer 4f38eb717e Make it so you can go left from A to Z and right from Z to A in the
Edit Menu.  Small change.
2007-04-22 14:32:04 +00:00
John Bauer 76ffe8fd73 Add a couple files to the vc8 build and turn exceptions back on. 2007-04-22 14:12:59 +00:00
Steve Checkoway 96ad156980 The last of the missing files. 2007-04-22 08:42:42 +00:00
Steve Checkoway aad8662bdb This is not unique to Linux. 2007-04-22 07:00:19 +00:00
Steve Checkoway 27049d68fd Remove unneeded include. 2007-04-22 06:30:12 +00:00
Steve Checkoway 507842fe52 Add/remove files. 2007-04-22 05:17:45 +00:00
Steve Checkoway 3d11ecd137 Style cleanup. 2007-04-22 00:14:36 +00:00
Steve Checkoway 9e186e22bc Load commands. 2007-04-22 00:06:50 +00:00
Steve Checkoway 5529b25ea9 static. 2007-04-22 00:02:32 +00:00
Steve Checkoway eb4246df82 Spacing cleanup and static. 2007-04-22 00:01:59 +00:00
Steve Checkoway f224db5ce6 Load the commands. Not tested. 2007-04-21 23:51:24 +00:00
Steve Checkoway 2d6c04e4f3 One ON_COMMAND is probably enough. 2007-04-21 23:51:08 +00:00
Steve Checkoway ad4cf84255 Maybe fix compile on windows. (Part III) 2007-04-21 23:20:36 +00:00
Steve Checkoway ebe44e87e3 Revert. 2007-04-21 23:16:04 +00:00
Steve Checkoway 3d9cfcd130 String, not boolean. 2007-04-21 23:15:18 +00:00
Steve Checkoway d152259801 Remove /. Also use a font that exists. 2007-04-21 22:27:17 +00:00
Steve Checkoway 7f7d798cc0 Simplify. 2007-04-21 22:08:15 +00:00
Steve Checkoway 15b259f4f5 Remove LoadInternal. 2007-04-21 22:01:31 +00:00
Steve Checkoway 734ad88eb0 Unneeded headers. 2007-04-21 21:58:27 +00:00
Steve Checkoway bfd7e70d2d Const. 2007-04-21 21:54:37 +00:00
Steve Checkoway 13ee0302db The code uses MaxSongs. I was not sure which to change. 2007-04-21 21:41:15 +00:00
Steve Checkoway 4270b68356 Maybe fix compile on windows. (Part II) 2007-04-21 21:20:39 +00:00
Steve Checkoway 5222d704f8 Maybe fix compile on windows. (How is it that it's 2007 and VC still doesn't support c99?) 2007-04-21 20:59:26 +00:00
Steve Checkoway e29505ba7a Fix warning. 2007-04-21 20:58:22 +00:00
Steve Checkoway 4295093cd9 Speed the music scroll up. 2007-04-21 20:41:57 +00:00
Steve Checkoway a805778002 Extra stage mods were swapped. 2007-04-21 20:29:21 +00:00
Steve Checkoway 1e99c68e8b Make the compiled bytecode more portable by requiring that the generic int sizes be 32 bits. In addition, swap 32 bit ints and 64 bit doubles as needed. 2007-04-21 20:08:12 +00:00
Steve Checkoway a87cc6a80a The language does not depend on librt. 2007-04-21 19:46:55 +00:00
Steve Checkoway 8bc650fbaf CollapsePath thinks that .. is a file name. Add a slash to convince it otherwise. 2007-04-20 08:02:53 +00:00