Martin Natano
78fb2e9fc3
Decouple <cstddef>
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
c1a3455ce4
Explicitly create RStrings to avoid MSVC compiler errors.
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
Martin Natano
49127f6a92
Remove RageUtil_CachedObject
...
I don't notice any performance drawback in gameplay, but it was
massively slowing down ScreenReloadSongs.
2022-06-10 19:33:23 +02:00
Martin Natano
0861ed45c7
Merge /AdditionalSongs into /Songs, and /AdditionalCourses into /Courses
...
Includes a backwards-compatibility mechanism to adapt paths when loading
Stats.xml.
2022-03-11 22:35:31 +01:00
Wesley Castro
8f8ce5c48d
Fix accessing pointer from temporary object. ( #1897 )
2019-09-26 10:36:13 -07:00
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Kyzentun Keeslala
026801e28d
In SongID::ToSong, check whether the dir is empty before prepending a slash, so GetSongFromDir can be skipped when the dir is empty.
2016-02-03 21:14:06 -07:00
Jason Felds
80542a5a7d
Require reasons for checkpoints.
2015-06-08 18:37:13 -04:00
Kyzentun
fa0478affa
Merged per-chart music. Updated changelog.
2015-03-09 19:06:57 -06:00
Kyzentun
0318f07d2d
Implement preview music properly as a new optional tag in the ssc file. Changed ScreenManager to emit an error instead of asserting if a screen attempts to use SetNewScreen inside an InitCommand. Changed decorations layer to be a proper child instead of stripping away the ActorFrame.
2015-03-04 01:31:02 -07:00
Kyzentun
846f79879c
Added MUSIC tag to note data to allow each chart in a simfile to use a different music file.
2015-03-02 18:44:01 -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
Ben "root" Anderson
8f9a7efbb4
Added some sorely lacking filtering logic to EditMenu related to Practice mode.
2014-01-25 14:18:18 -06:00
Jason Felds
07b9fb6da5
The big NULL replacement party part 6.
...
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds
28e5148dec
The big NULL replacement party part 5.
...
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds
a3f37dc2b4
The big NULL replacement party part 3.
...
Getting there I think.
2013-05-03 23:16:39 -04: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
9f24627bf9
The big NULL replacement party part 1.
...
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.
And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -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
b32ff0504c
Gotta love loops that can be done with any_of.
2013-05-01 22:35:35 -04:00
Jason Felds
abe2b65514
More loops.
2013-04-30 20:07:22 -04:00
Jason Felds
dfe924a64d
Simplify, be explicit.
2013-04-27 14:00:31 -04:00
Jason Felds
f66883aa1b
Forgot to utilize references.
...
Still compiled, but wasn't the best move.
2013-04-27 13:33:05 -04:00
Jason Felds
4cff3766aa
Set loop (plus white space)
2013-04-27 13:31:47 -04:00
Devin J. Pohly
8815da5f1f
replace SongManager::GetSongFromSteps with use of song pointer
2013-01-20 19:51:59 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
1fc16698ba
War on -Werror, part 12: explicit bool usage.
...
It may save a few cycles, but it's best to be
explicit on boolean operations, especially with
ASSERT.
2012-12-27 11:38:53 -05:00
Jason Felds
3039b0492e
...or just remove it.
...
No lines of code after were using it.
Makes me question the purpose of needing Style.
2011-08-13 00:32:00 -04:00
Jason Felds
040bb26b4c
...are we using this? Leaving commented for now.
2011-08-13 00:30:04 -04:00
AJ Kelly
0285f7687f
[GameState, SongUtil] Fix Issue 263 by not charging 2x stages for doubles when not using joint premium.
2011-08-07 18:33:35 -05:00
Jason Felds
aea01c26a4
........................
2011-07-11 16:34:21 -04:00
Jason Felds
fb5450e234
Second verse, better than first.
2011-07-11 15:43:47 -04:00
Jason Felds
7b377d836d
Stop array out-of-bounds exception.
...
Alright, that's it: I'm getting cppcheck.
2011-07-11 12:27:12 -04:00
Jason Felds
054151eed1
Ready for the dry run.
2011-07-07 15:06:19 -04:00
Jason Felds
061b6e802e
Prepare the validator function for chart names.
2011-07-07 14:19:34 -04:00
Jason Felds
f900b53f1d
Edits can have 255 chars in the description now.
2011-06-11 15:10:27 -04:00
AJ Kelly
cd3bb6f0ed
[SongUtil] Added GetPlayableSteps(Song) Lua binding.
2011-06-11 13:13:30 -05:00
Jason Felds
42f39c7ab9
Restrict course editor to playable songs.
...
This does not yet deal with songs with charts
in multiple game types.
...at least, as far as I know.
2011-06-08 21:58:45 -04:00
Jason Felds
7d81680bb3
Readability.
2011-06-06 20:47:21 -04:00
AJ Kelly
0fc49d9da9
[MusicWheel] Added ShowSectionsInBPMSort and ShowSectionsInLengthSort metrics.
2011-05-14 19:27:25 -05:00
Jason Felds
7a9796f769
Add metrics for BPM and Song Length sorting.
...
Fixes request 173.
2011-04-01 01:35:14 -04:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
AJ Kelly
de77a3ac1f
fix grade sorts too
2011-03-13 20:33:42 -05:00
AJ Kelly
56bb3e8445
sm5svn 0dc297b [Glenn Maynard]
...
"Previously, we didn't create MusicWheel sorts when the screen loads; it was delayed until the
screen begins. This allowed preloading before the style is set. However, it caused a
major skip when the screen starts, because creating the sorts is fairly expensive.
Refactor this. Load the sorts when the screen is loaded, and then go through them
and quickly filter out unplayable data and handle other initialization on begin.
This is much faster, so we can more easily transition seamlessly from the previous
menu.
One known limitation: the sorts are created before we know the style, so we have to
guess. This means if you're in a style like dance-solo or pump-halfdouble, sorts will
still be based on regular mode. This affects the difficulty, top grade and roulette sorts."
2011-03-08 21:09:38 -06:00
Jason Felds
d6f08c27cb
Hodgepodge of doxygen. Long way to go.
2011-02-13 11:14:58 -05:00
Jason Felds
3f1bed5925
Duplicate step check with #CREDIT.
2011-02-11 01:55:44 -05:00
Jason Felds
f8694fe463
Add utility methods for step's #CREDIT tag.
2011-02-11 01:50:23 -05:00