Commit Graph

70 Commits

Author SHA1 Message Date
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 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 f2dbe7ccdb Utilize the algorithm approach. 2013-05-01 21:55:47 -04:00
Jason Felds 9f431955f3 Another loop. 2013-04-28 18:03:24 -04:00
Jason Felds acb312fa14 No need for indexer: use for each.
Also no need to have a separate ref variable.
2013-04-27 13:56:25 -04:00
Jason Felds 7356adefd7 Handle the set loops here. 2013-04-27 13:54:28 -04:00
Devin J. Pohly 4c2bfd7dc9 Add ChangeSort method to Lua MusicWheel 2013-03-24 00:12:17 -04:00
Devin J. Pohly b7d74c6c0b Register MusicWheel as a Lua class.
Now Lua functions on MusicWheel actually exist.
2013-03-24 00:01:40 -04:00
Jason Felds fb06985b64 Another goto goes away.
As far as if a variable should be made in the loop
or out of it...consider that up for debate.
2013-01-24 22:54:02 -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
AJ Kelly 2edd2b31b5 add TrySelectCourse so that SelectCourse can be bound without having to change its protection 2012-07-22 17:07:12 -05:00
Flameshadowxeroshin 1fc5fe100e prepare for vyhdycokio anger 2012-07-22 12:26:43 -05:00
Flameshadowxeroshin c2bc9d1ff3 if you fail to reach the top the more you break the more you drop. try it again. try it again. 2012-07-22 12:05:19 -05:00
Flameshadowxeroshin 2b21a91f91 Add ResetSelection binding to MusicWheel, add MusicWheel to Luadocs 2012-07-22 11:44:45 -05:00
AJ Kelly 7051b2bc16 it's bitching about this for some reason 2012-07-08 10:58:53 -05:00
AJ Kelly 44523f0c48 [MusicWheel] Added EmptyColor metric. 2012-05-27 12:55:31 -05:00
AJ Kelly ccf29a15b7 [MusicWheel] Added RouletteStopped message, which is broadcast when Roulette is finished and the wheel is locked. 2012-03-08 18:39:42 -06:00
AJ Kelly 02ae959aab [MusicWheel, WheelBase] Added collapse sound. 2012-03-01 21:35:33 -06:00
Jason Felds 4ae5105d46 Enforce a rebuild, allow for sorting itself. 2012-01-08 22:32:48 -05:00
Flameshadowxeroshin 069c423b52 to me this makes sense... the real fix is still a mystery it seems 2012-01-09 02:45:51 +00:00
Jason Felds e73d3c33c3 Partial fix for music wheel woes. 2012-01-08 21:39:58 -05:00
AJ Kelly ec74678b70 Add MusicWheel:IsRouletting and WheelBase:GetNumWheelItems Lua bindings. 2011-12-27 11:03:02 -06:00
Colby Klein 2e5d5f3697 Add some Lua bindings for the music wheel and items. 2011-12-20 01:47:49 -08:00
AJ Kelly ebe832a142 Move the expanded section name into GameState 2011-08-03 23:56:04 -05:00
AJ Kelly 701034219f [MusicWheel, RoomWheel] Moved the "- EMPTY -" string to the languages file. [AJ] 2011-08-01 16:58:54 -05:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
Jason Felds 02d05e1b33 Revert. Try to avoid breaking default compiling. 2011-07-07 09:33:04 -04:00
Alberto Ramos a7e356793f can someone look for a workaround for this please? 2011-07-07 03:06:19 -06:00
Jason Felds 5ef549d80d Warning fixes. 2011-06-11 09:36:17 -04:00
Jason Felds 09305639ae Let AutoSetStyle select all charts in the game. 2011-06-06 21:41:24 -04:00
Henrik Andersson ca71c99f63 Cleaning up some merge junk that I missed. 2011-05-30 11:25:09 +02:00
Henrik Andersson 7379443cb3 The wheel merge result compiles! It also doesn't crash at runtime! 2011-05-29 20:40:28 +02:00
AJ Kelly 14e07cbb61 planning stuff for musicwheel 2011-04-29 13:25:58 -05:00
AJ Kelly 6fa63cfb78 todo comment about ordering random, roulette, portal, and custom items 2011-04-09 23:32:13 -05:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
AJ Kelly 919279938e Revert "Previously, we didn't create MusicWheel sorts when the screen loads"
This reverts commit 0dc297ba76508bb7244ed70f9f72761087e1f177.

It didn't work out so well.
2011-03-13 20:23:07 -05:00
AJ Kelly ff5cef88f0 whoops again! 2011-03-13 12:32:35 -05:00
AJ Kelly 983c2cd56f whoops, forgot a line. 2011-03-13 12:30:47 -05:00
AJ Kelly b0398a3b4f sm5svn 2527d15 2011-03-13 12:30:22 -05:00
AJ Kelly a906aac6b9 fix warning 2011-03-09 13:55:55 -06: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
AJ Kelly c28845a8dc Added custom MusicWheel items.
[ScreenSelectMusic] Add GetMusicWheel Lua binding.
2011-03-08 19:28:40 -06:00
Jason Felds 00257e7995 Consistent semicolon use.
This is C++, not Python!
2011-02-18 20:40:51 -05:00
AJ Kelly 86dab15937 remove unused logging 2011-02-18 14:07:41 -06:00
AJ Kelly ff9eb24770 [MusicWheel] add RouletteColor, RandomColor, and PortalColor metrics 2011-01-15 17:06:28 -06:00
AJ Kelly 628afdd7d8 comment and stuff 2010-12-21 16:22:01 -06:00
AJ Kelly 092f767d6b small cleanup 2010-12-14 02:09:12 -06:00