Commit Graph

172 Commits

Author SHA1 Message Date
Steve Checkoway 4517499f0f lroundf -> lrintf. 2007-01-03 05:05:28 +00:00
Steve Checkoway eb0b26cd82 Float to int is slow on ppc. It requires a store, a big stall, and then a load. It's even worse on a G5 if the compiler is dumb (and let's face it, I'm using gcc here...). Just use lroundf when we want an int. It will certainly be no slower. 2007-01-02 23:36:44 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +00:00
John Bauer 5d2bf93725 Make all uses of the Steps* in the TrailEntry class use an accessor method.
This makes it simple to switch to something else, such as using a StepsId
instead of a Steps*.
2006-11-10 05:04:09 +00:00
Glenn Maynard 30fd6d77b4 maybe workaround g++ 3.3 weirdness 2006-10-07 08:56:12 +00:00
Steve Checkoway 1345a2cd5f LogType -> string. Done. 2006-09-24 03:57:40 +00:00
Glenn Maynard e206261b80 ARRAYSIZE -> ARRAYLEN 2006-09-13 03:11:38 +00:00
Steve Checkoway faf32603f1 Consistent user warnings. 2006-09-04 08:09:27 +00:00
Steve Checkoway 4606d68fdf Move warnings meant for the user to userlog.txt. These are as inconsistent in format as before but at least they're all in one place. 2006-09-03 05:16:09 +00:00
Jason Felds 0cd3ab7575 DWI Wave -> Expand.
This is, admittedly, exploiting behavior from the DWI program, but it will allow courses to work in both programs.
2006-09-02 01:54:18 +00:00
Steve Checkoway 8c6575ecbb PlayerOption po1; // Initialize it.
PlayerOption po2;

po2.FromString( po1.GetString() );
po2 does not necessarily equal po1 because the note skin might be omitted so po2's note skin will be blank. Passing true to GetString() will include the note skin so po2.FromString( po1.GetString(true) ) will cause po2 to equal po1.
2006-08-18 00:09:09 +00:00
Chris Danford 7ac45c24e4 save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore. 2006-08-05 02:38:05 +00:00
Steve Checkoway 884af552ee Allow combined player steps to have per-player radar values. This doesn't work for trails where it just uses the PLAYER_1 values, same with writing to the catalog file. 2006-07-28 03:34:14 +00:00
Steve Checkoway a07e194cf1 Revert. Fixes Linux build. 2006-07-18 05:51:37 +00:00
Jason Felds 366c3440d4 Fix VC8 macro redef warning. (more to come) 2006-07-18 03:56:37 +00:00
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford 1ec3e9f6b1 make little disqualify 2006-06-16 04:18:43 +00:00
Glenn Maynard f0b7631e3a use standard name "isfinite", not "finite" 2006-06-15 03:15:41 +00:00
Chris Danford 8a0d3db8dc isfinite -> finite 2006-06-12 22:34:52 +00:00
Steve Checkoway 2992fa865a Watch out for NaN, etc. That assert will never trigger unless PCRE stops working (or someone breaks the regex). 2006-06-12 07:56:27 +00:00
Steve Checkoway 3f27205e40 Don't throw on invalid options. If we know that they meant *123 and they have 123*, is there any reason not to simply handle it? 2006-06-12 07:22:26 +00:00
Steve Checkoway d2f3a14495 strtof -> StringToFloat. 2006-06-12 06:42:25 +00:00
Steve Checkoway 9da602cec4 Use the theme metric rather than "default". 2006-05-20 09:00:09 +00:00
Chris Danford 74ecf45379 add Tiny (the same effect as the old Mini)
make calories less generous
2006-04-05 02:59:16 +00:00
Chris Danford ee8329cee6 don't DQ because of forced mods 2006-03-26 17:48:39 +00:00
Glenn Maynard 5e5d451480 fix assert on saved mods 2006-03-14 03:35:43 +00:00
Chris Danford 071558697b don't show a string for the default NoteSkin 2006-02-22 17:27:32 +00:00
Chris Danford 0e12a206f4 blank m_sNoteSkin mean "no change in NoteSkin". Don't hardcode the NoteSkin "default" everywhere because "default" is not guaranteed to exist. 2006-02-22 17:15:13 +00:00
Chris Danford 9a05977e52 localize SongOptions strings 2006-02-05 20:30:37 +00:00
Chris Danford 370d11ee19 theme -> localize 2006-01-29 22:17:54 +00:00
Glenn Maynard da685371bb cleanup 2006-01-28 09:08:39 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 0b98adff15 make RadarCategory enum and Lua names consistent 2005-12-24 20:18:56 +00:00
Glenn Maynard 39b07e55b3 cleanup (prefer size() over GetLength) 2005-12-21 07:50:14 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Chris Danford 8b8fa8aad3 move CommonMetrics into a namespace so that it's clear where they're coming from when used. 2005-10-27 05:16:19 +00:00
Glenn Maynard eef0ed7ffb typo 2005-10-10 07:21:43 +00:00
Glenn Maynard 781017c4c0 ChooseRandomMofifiers -> ChooseRandomModifiers 2005-09-08 01:06:01 +00:00
Glenn Maynard a23620b72f fix compiling regex repeatedly 2005-09-04 19:32:58 +00:00
Glenn Maynard b48fa6fe04 fix PlayerOptions::GetMods for perspective mods 2005-06-15 21:56:28 +00:00
Chris Danford 504011ac3f fix "can't turn off C*" 2005-05-08 22:01:52 +00:00
Chris Danford 2deaf41472 fix C* 2005-05-08 04:12:53 +00:00
Chris Danford 6ca0639c3c add invert 2005-05-05 21:40:54 +00:00
Glenn Maynard 633aa6f779 fix crash when invalid options contain % 2005-05-02 19:34:31 +00:00
Chris Danford b81c304eb6 rename FixImposibleRows -> RemoveStretch and turn it into a mod 2005-05-01 04:35:29 +00:00
Chris Danford 8a1b17be68 support approach speeds for speed mods 2005-04-30 07:47:19 +00:00
Glenn Maynard 1c3323fac7 add norolls 2005-04-25 09:42:26 +00:00
Chris Danford f6308e73fd approach current scrollBPM faster 2005-04-24 10:48:18 +00:00
Chris Danford 6640b3fed6 allow negative mod percentages 2005-04-20 09:08:22 +00:00
Chris Danford 7caea1e41a add HiddenOffset, SuddenOffset mods 2005-04-20 08:54:12 +00:00