Commit Graph
44 Commits
Author SHA1 Message Date
Martin Natano bacecae1f7 Decouple <vector> 2023-04-21 22:13:41 +02:00
Martin Natano b68ca517e6 Clean up math functions
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include

e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Michael SundqvistandMartin Natano 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Martin Natano acb3ad727a Fix sort by length
The sort order is not remembered between songs when sorting by length.
This can be fixed by recognizing SORT_LENGTH as a sort order that can be
used for songs.

Reported by @aeubanks in https://github.com/Simply-Love/Simply-Love-SM5/issues/363
2022-03-12 19:13:11 +01:00
teejusb c10d8e4eb5 Initial Implementation of disabling timing windows per player. 2021-12-10 00:27:21 -08:00
Flameshadowxeroshin aba0f1f7b3 Rename GameButtonType_INVALID to GameButtonType_Menu.
Strictly that's not right but close enough.
2015-12-05 20:02:00 -06:00
Flameshadowxeroshin d329c80ad3 remove guitar cruft
There was a bunch of code for handling guitar-specific input such as hammer-ons/pull-offs and strumming. Given that guitar was removed, and as far as I understand, will not be added back into SM5, it makes sense to remove code that had no other use.
2015-12-05 11:12:17 -06:00
Jason Felds 960af12c23 Partial revert of b61e878.
Pump holds do have a little bit of leeway when it comes to letting go and putting your foot back on as proven by [WinDEU's demonstration of Dignity S20](https://www.youtube.com/watch?v=P2Fw9KPyHIg&feature=youtu.be&t=30).

The value used was determined by two video sources: the one mentioned above and a private one sent to me involving a different song/chart combination. 200ms is a rough estimate for what works. There may be other allowed values.
2015-07-19 16:08:50 -04:00
Kyzentun 5852067f47 Added RadarCategory_Notes. Rewrote NoteDataWithScoring stuff to only traverse the NoteData once, and match the radar code in NoteDataUtil. Fixed hand and lift counting in NoteDataUtil::CalculateRadarValues. Removed cap from RadarValues so that Stream, Voltage, Air, Freeze, and Chaos can be over 1.0. Fixed Stream and Voltage to not count hold heads twice. Changed SetRadarValues in NotesLoaderSSC to not require the stepfile version number. 2015-04-06 18:45:23 -06:00
Kyzentun a2798e16f4 More aggressive caching. In general, this makes Stepmania avoid looking in the song directory at all if the song is in the cache, in order to load songs faster. All the RadarValue calculations were also rolled into one to reduce the time needed to build the cache. 2015-03-23 11:35:30 -06:00
Kyzentun c65c1eb386 Added kickbox game mode with 4 styles. 2014-12-09 22:22:50 -07:00
Kyzentun 421a9be57b Ripped out existing PlayerOptions Lua interface and replaced it wholesale. Removed PrefsManager's DefaultFailType enum. Moved PlayerOptions::FailType enum to GameConstantsAndTypes and made it Lua accessible. Changed ModsLevel enum to include ModsLevel_Current to make accessing that ModsLevel easier to access. Rearranged ModsGroup appropriately. Added non-const Get functions to ModsGroup. Removed PlayerOptions.m_bSetTiltOrSkew because it had no reason to exist. Moved 200.0f to the const CMOD_DEFAULT because it was being used in more than one place. 2014-05-01 23:23:20 -06:00
sigatrev 343511f4c3 HNS_Missed
Added an HNS type to handle holds which are never initialized due to
missed taps. This fixes a long standing issue with
iCurPossibleDancePoints and allows themes to decide how to handled this
case.
2014-03-16 11:36:40 -05:00
AJ Kelly 7787efdaa9 Add Lua bindings for RankingCategory
(Sourced from shakesoda/stepmania.)
2013-10-04 07:43:41 -05:00
Devin J. Pohly 259e9b1e00 Revert "Round 2 of this."
This reverts commit 1d7b5fe852.
2013-06-04 23:47:49 -04:00
Devin J. Pohly bf20306d07 Revert "Missed more of these darned spots."
This reverts commit bbb57b1600.
2013-06-04 23:46:11 -04:00
Jason Felds bbb57b1600 Missed more of these darned spots.
Gah, losing my touch.
2013-04-18 22:56:57 -04:00
Jason Felds 1d7b5fe852 Round 2 of this. 2013-04-15 23:26:05 -04:00
Colby Klein 3f32d9114f Revert "CoinMode_Pay->CoinMode_Free, step 1."
This reverts commit 15b3ee1a9a.
2013-02-11 12:11:54 -08:00
Flameshadowxeroshin 15b3ee1a9a CoinMode_Pay->CoinMode_Free, step 1.
CoinMode_Pay is still a value for the CoinMode enum but is now the same as CoinMode_Free.
Any code that checks for CoinMode_Pay is gone.
2013-02-07 09:12:28 -06:00
AJ Kelly 2dd68c8349 [GameConstantsAndTypes] Made StageResult Lua-aware. 2012-03-28 18:55:06 -05:00
AJ Kelly 7ce28b7b88 attempt to fix crashes by removing more guitar stuff 2011-07-30 17:21:48 -05:00
Jason Felds 1574de2c25 Deal with corner case.
The hardcoded 600 will soon become a metric.
2011-07-03 13:35:00 -04:00
Jason Felds 212a3b971f Allow beat versus to take place.
Made sure to cover 5 and 7 styles.
2011-05-11 14:33:04 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 8dd7b96ad4 Hopeful comment cleanup. 2011-02-28 09:36:37 -05:00
Jason Felds 84ca444bd2 New branch: attempt to add Fakes to the radar.
At this point, the code still compiles.
Running? No guarantees. More work to be done.
2011-02-27 21:52:59 -05:00
Jason Felds 01f29c7995 More doxygen. 2011-02-25 11:12:04 -05:00
Jason Felds 6f276da825 Document all FOREACH loops. 2011-02-18 21:16:11 -05:00
Jason Felds 49859de9d7 More doxygen. 2011-02-13 14:32:36 -05:00
Jason Felds e4f990d49a More doxygen. 2011-02-12 19:28:44 -05:00
Jason Felds 46335bfeeb Missed a constant. 2011-01-09 12:44:27 -05:00
AJ Kelly 036b23e9d3 add Banners for various SortOrders. (Group and Recent not included for various reasons) 2010-12-23 22:31:52 -06:00
AJ Kelly 53a8a435ef remove unfinished karaoke mode 2010-08-19 21:24:35 -05:00
AJ Kelly f0a27980d0 * Step information can now show meters from 0-25. (hopefully)
* MAX_METER upped to 35.
2010-07-03 22:06:37 -05:00
AJ Kelly cc470cad86 Implement the last remaining SampleMusicPreviewMode: StartToPreview. This one requires [ScreenSelectMusic] TwoPartConfirmsOnly=true in the metrics to work correctly. 2010-06-23 14:09:43 -05:00
AJ Kelly 79d97e7fec re-add dance-threepanel now that the StepsDisplayList issue has been resolved. (Turns out that was the reason it wasn't working.) thanks to kurisu for the base code.
also update docs
2010-05-02 11:25:00 -05:00
AJ Kelly 88f1da651c add SampleMusicPreviewMode_LastSong, now that it works.
There is a hack in there for playing the song associated with the Random option, based on Takuya's DDR Extreme theme having music for it. I am not sure if this is accurate behavior, though.
2010-04-19 00:09:21 -05:00
AJ Kelly 1867e92dee various changes from the ssc svn post-public beta 2 release.
* New Lua bindings SONGMAN:GetGroupNames() and SONGMAN:GetSongsInGroup(string)
* Add Lifts to PaneDisplay (StepMania 3.9+ added them)
* Fix an issue where course banners were able to trip off the uneven dimensions dialog
* NextSong/PrevSong now work when TwoPartSelection=true + TwoPartConfirmsOnly=true on ScreenSelectMusic. A new message ("TwoPartConfirmCanceled") was added to catch when this happens.
and there may have been some stray cleanup in here too
2010-04-14 21:43:32 -05:00
AJ Kelly 642f4b107c the various changes that I forgot to commit (cleanup and so forth) into hg,
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
AJ Kelly dca9182138 various cleanup and commenting 2010-03-14 19:46:05 -05:00
AJ Kelly 75861f22a1 various commits from SM4 SVN, courtesy of Glenn and Vyhd. 2010-02-14 23:02:34 -06:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00