Martin Natano
aa87f85eef
Decouple <cstdint>
2023-04-21 22:13:41 +02:00
Martin Natano
78fb2e9fc3
Decouple <cstddef>
2023-04-20 11:21:29 +02:00
Martin Natano
093675cdc3
Use attributes where possible
2023-04-20 11:21:29 +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
Brian Phlipot
4a6b1a743c
Enable more compiler warnings and treat them as errors.
2023-02-02 11:54:17 -08:00
Brian Phlipot
37aff00d6e
Require C++20 for building Stepmania.
2022-10-03 16:21:19 -07:00
Michael Sundqvist
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
tertu marybig
9b348090a7
HyperShuffle implementation
...
Also add it to _fallback
2022-06-23 11:09:40 -07:00
quietly-turning
6bd6963406
Revert "Merge pull request #1888 from mwkroening/notes_loader-invalid_argument"
...
This reverts commit 56caf6da4b .
2021-08-14 21:25:27 +01:00
Martin Kröning
67bce17382
Extract logic to NoteDataUtil::StringInterpretsAs
2020-06-13 23:36:10 +02:00
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Jason Felds
bec18a0d36
Fix minor windows pedantic warnings.
2016-03-27 22:03:15 -04:00
Jason Felds
edabf4605b
Clean up three sets of warnings:
...
* Ensure all switches have a default when working with enums.
* Match defined new[] calls with delete[] calls.
* Respect variable initialization order.
2016-03-24 18:30:29 -04:00
Kyzentun Keeslala
eb3121faf9
Pass timing data to TransformNoteData so that fake notes inside warps can be removed properly.
2016-03-02 08:23:26 -07: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
Kyzentun Keeslala
155b185307
Fixed crash in edit mode caused by chart mods not revalidating the ATIs of the notedata. Edit mode still doesn't play attacks perfectly right.
2015-07-11 00:43:37 -06:00
Joe
16a75bf94c
Backwards and shuffle mods now ignore turntable in beat-single5/7
2015-04-30 12:51:23 +01:00
Kyzentun
60349d849e
Modified NoteDataWithScoring::GetActualRadarValues to use the time between the first and last hittable notes instead of the first and last seconds of the song because the song could start or end with mines or other unhittable notes.
2015-04-08 20:15:18 -06:00
Kyzentun
1e668c660f
Removed _t from typenames because of POSIX. Fixed bug that made a warp and stop on the same row skip the marker in TimingData.
2015-04-06 21:49:46 -06: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
3c70b13fcf
Fixed unitialized radar in CalculateRadarValues. Changed song deletion message to use translated string. Updated changelog.
2015-03-27 17:04:58 -06:00
Kyzentun
96259ab951
Fixed voltage calculation by making avg_bps a float instead of an int.
2015-03-23 22:41:15 -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
b6e6185156
LoadTransformedSlidingWindow and LoadOverlapped now strip the PlayerNumber of each tapnote to PLAYER_INVALID so that NoteDisplay doesn't crash during rendering a single chart that was autogenned from a couple chart.
2015-01-30 10:05:15 -07:00
Kyzentun
cf66c5e78d
Shuffle mod for kickbox. Noteskin from midiman.
2015-01-27 17:27:02 -07:00
Kyzentun
c69cf1ef4e
Special case kickbox autogen added. GameState now has a member for passing args from the theme to the autogen, only used by kickbox for kick recovery time.
2015-01-26 19:43:15 -07:00
Kyzentun
3fb36af157
Separate styles for players. Notefields positioned between margins. Edit mode works for kickbox.
2014-12-09 22:27:00 -07:00
Kyzentun
d5878da037
Added Arbitrary Remap option to Alter Menu in Edit Mode.
2014-08-30 13:38:16 -06:00
Kyzentun
be64c240c3
Added Swap Up/Down option to Edit Alter Menu.
2014-08-30 00:47:07 -06:00
sigatrev
82cb4a198d
Enums for TapNoteType, TapNoteSubType, and TapNoteSource
...
I intend to make additional useful information available on judgments,
such as TapNoteType and TapNoteSubType( for hold judgments ).
I am submitting this part as a separate pull request because it is more
generally applicable to anything TapNote related.
2014-08-02 00:38:48 -07:00
Kyzentun
1a18d64f09
Added revalidation scheme to NoteData's all_tracks_iterator so that it can be made valid again after the NoteData is transformed by something adding or removing steps. This fixes the crash on courses that use transform mods on the second song. ITG2's Getting Started is an example.
2014-08-02 00:38:38 -07:00
sigatrev
c4f7aab9a1
Attempted fix of Tick Holds
...
NoteDataUtil::GetTotalHoldTicks() was not counting the last tick of
holds which ended on the last row of the song. Extended the range to
include the last row.
NoteDataUtil::GetTotalHoldTicks() was counting number of rows held, when
it should only count 1 regardless of number( at least to mimic pump )
Player::CrossedRows() was assuming a constant tick rate over the crossed
rows, leading to potentially inaccurate tick counts.
Pump holds were counting "HoldNote_Held" due to capitalization in the
metrics. Fixed metrics and made "IsGame" function case insensitive.
2014-04-23 21:45:37 -05:00
Ben "root" Anderson
6dcc227327
New NoteDataUtil to count hold ticks in a NoteData. Significant overhaul to make PossibleDancePoints consider hold ticks, using said function.
2013-12-19 23:46:01 -06:00
Jason Felds
ba59dd1656
The big NULL replacement party part 2.
...
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds
c67419ecc8
There goes the macro file.
...
This is one of my bigger commits in this branch.
Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds
d945ee21cb
NoteData handled.
2013-05-01 22:03:47 -04:00
Jason Felds
efd703c126
Standard loops this time.
2013-04-28 22:55:47 -04:00
Devin J. Pohly
1bf8e07584
NoteDataUtil: I thought this control structure looked familiar...
2013-01-26 00:05:46 -05:00
Jason Felds
dacb721e4b
goto -> fake infinite.
2013-01-24 23:33:42 -05:00
Jason Felds
3ec76f4dc6
More goto removals.
2013-01-24 23:29:54 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
a15cbc431d
War on -Werror, part 14: More hodgepodge.
2012-12-27 12:45:04 -05:00
Jason Felds
1f024cd739
[backwards] Switches in switches: need a break.
2011-10-16 16:43:20 -04:00
Jason Felds
68061b13c5
[backwards] Add appropriate comment for devs.
2011-10-16 16:33:33 -04:00
Jason Felds
142a62aa6e
[backwards] Have Backwards fallback to Mirror.
...
Not all gametypes require Backwards: they will fall
through to Mirror. Otherwise, catch it here.
2011-10-16 15:50:13 -04:00
Jason Felds
e8f95dd28e
[backwards] Prepare PlayerOptions version.
2011-10-16 15:34:29 -04:00
Flameshadowxeroshin
d8a7d837be
change in wording
2011-10-06 22:47:33 +00:00
Jason Felds
b69521c3c6
More accurate left, right, and mirror pump mods.
...
BIG thanks to Hudson Felker and Bill Shillito.
2011-10-04 00:53:33 -04:00
Jason Felds
02f20754f6
More accurate comment.
2011-09-10 21:54:42 -04:00
Jason Felds
992dbe665a
If we have asserts/failures, may as well be clear.
2011-09-10 21:48:54 -04:00