Commit Graph

245 Commits

Author SHA1 Message Date
Glenn Maynard 00b82cf86a fix course bugs 2005-03-08 01:07:01 +00:00
Glenn Maynard 776060e913 implement course radar value caching 2005-03-07 22:30:39 +00:00
Chris Danford a0ebb13fec add lua bindings 2005-02-21 17:20:11 +00:00
Glenn Maynard 0f010d2321 add Course::FindFixedSong, Attack::FromGlobalCourseModifier 2005-01-03 23:30:56 +00:00
Chris Danford 2b9d990e71 prefs name cleanup 2004-12-04 06:09:30 +00:00
Glenn Maynard 82522540ba only cache course banners for courses that actually loaded 2004-12-02 23:04:15 +00:00
Glenn Maynard 639afd0bfd memory optimization: sizeof(Trail) * NUM_STEPS_TYPES * NUM_DIFFICULTIES adds up.
This will cause Trail*s returned from GetTrail to become invalid when the trail
cache is invalidated.
2004-11-05 08:54:09 +00:00
Chris Danford eb1d517cc9 don't hard-code course colors 2004-10-07 22:20:52 +00:00
Chris Danford 03fbb915f3 remove VC6 scoping hacks 2004-09-21 07:53:39 +00:00
Glenn Maynard 2846fb4c9c fix crashes on invalid #MODS entry 2004-09-08 00:33:20 +00:00
Glenn Maynard 189018ac04 better assertions 2004-09-06 07:03:32 +00:00
Glenn Maynard 1f1b24b7b1 add Course::GetAllCachedTrails 2004-08-30 22:15:57 +00:00
Chris Danford 873c148f0e fix crash on exiting editor
clean up invalidation of Song and Courses
2004-08-12 04:49:15 +00:00
Glenn Maynard aad73b53e9 (float) atof() -> strtof(), which computes in float instead of computing in
double and casting to float, which is silly
2004-08-10 20:57:59 +00:00
Glenn Maynard 0295d00db1 Fix radar values being calculated for non-fixed trail entries; the
Trail::GetRadarValues case didn't handle BEST, caprice, and m_bRandomize.
Catalog.xml writing is still too slow (eg. for "Tournamix 4 Sample.crs").
2004-08-05 20:03:03 +00:00
Chris Danford b028934429 clean up Course cache logic 2004-07-24 06:40:51 +00:00
Glenn Maynard 5217d21a98 remove trace 2004-07-13 22:47:40 +00:00
Chris Danford 3d1bb5b97a save radar values in Catalog.xml
change Course to have the same title names as Song
2004-07-11 10:02:38 +00:00
Glenn Maynard 7634898375 fix course sort crashes 2004-06-20 16:54:51 +00:00
Glenn Maynard b0590a0da1 clear the trail cache automatically when the round seed changes 2004-06-11 21:13:05 +00:00
Glenn Maynard 65cece919e fix random meter course entries not showing up correctly in CourseEntryDisplay (again) 2004-06-08 07:19:56 +00:00
Glenn Maynard c266c71dca stop accessing Song::m_vpSteps directly 2004-06-04 23:29:13 +00:00
Thad Ward a539219d63 use the meter values for the current course entry, not (possibly)
some other entry.
2004-06-04 22:06:31 +00:00
Glenn Maynard 4f5febbf07 fix m_iCustomMeter not initialized correctly
GetTrails: don't return course difficulties that aren't being displayed
2004-06-04 02:52:07 +00:00
Glenn Maynard b93d1bfd5e first pass at merging CourseDifficulty into Difficulty
CourseDifficulty names still exist, since it's useful to distinguish them
in command names
2004-06-04 02:05:56 +00:00
Glenn Maynard 8cbea03d58 remove Course::HasCourseDifficulty 2004-06-03 21:51:33 +00:00
Glenn Maynard 184024d538 if !HasCourseDifficulty(cd), return NULL from GetTrail instead of COURSE_DIFFICULTY_REGULAR 2004-06-03 21:45:24 +00:00
Chris Danford 61581479d8 track the current Trail in GameState 2004-06-03 08:22:02 +00:00
Glenn Maynard 80efe21839 store meter in Trail (like Steps) 2004-06-02 08:13:09 +00:00
Glenn Maynard 784af74244 add GetTrails
make GetTrail return value not become invalid after ClearCache() is called
2004-06-02 07:15:19 +00:00
Glenn Maynard 2cab5c4689 license updates 2004-05-31 22:42:12 +00:00
Glenn Maynard 59dd323920 fix difficulty changes not visible in CourseEntryDisplay 2004-05-31 21:05:34 +00:00
Glenn Maynard a5e1bf6fbf fix Course::HasCourseDifficulty always returning true 2004-05-31 20:06:21 +00:00
Glenn Maynard 41ef4f0edc TitleSubstitution cleanup, license update 2004-05-31 00:59:33 +00:00
Glenn Maynard c2d5ca167f simplify 2004-05-26 02:46:35 +00:00
Glenn Maynard 3a408a5596 Change difficult course behavior for meter-selected course entries. Pre-
adjusting the range (eg. 2..4 -> 4..6) can result in a different song being
selected.  This can result in each player getting a different song at the
same point in a course when LockCourseDifficulties is disabled.
2004-05-25 20:41:41 +00:00
Glenn Maynard 07cc7b5321 Fix "4..6" ranges never showing up in CourseContentsList. (That's why
iCourseIndex and Course::GetDifficulty existed.)
2004-05-25 20:33:17 +00:00
Steve Checkoway f817d4bdb2 Fix warnings 2004-05-25 10:22:54 +00:00
Glenn Maynard 511cb2870b read and write #COURSETRANSLIT 2004-05-25 04:18:59 +00:00
Glenn Maynard 7b502b917e support m_sNameTranslit for Translation.dat course entries; ShowNative=0
now works for courses
2004-05-25 04:12:52 +00:00
Glenn Maynard dd79208b67 artist course fixes
support translit fallbacks with artist courses
2004-05-25 04:08:21 +00:00
Glenn Maynard eba469f05d title accessors like Song 2004-05-25 03:44:47 +00:00
Glenn Maynard c70ca6eb35 s/m_sTranslitName/m_sNameTranslit/, for consistency with Song 2004-05-25 03:36:18 +00:00
Glenn Maynard dbe044d039 autogen Oni courses by artist, sorted by song difficulty 2004-05-25 02:17:17 +00:00
Glenn Maynard 50dc9d83cb GetAutogenDifficultySuffix is no longer needed 2004-05-24 23:31:56 +00:00
Chris Danford 4bb777232d name cleanup: "pNotes" -> "pSteps" 2004-05-24 03:41:39 +00:00
Chris Danford 99a02deffe name cleanup: "StepsType nt" -> "StepsType st" 2004-05-24 03:32:56 +00:00
Chris Danford 4ff8b8ec2b clean up Course score saving (use Trail) 2004-05-23 09:17:10 +00:00
Chris Danford 053f27d3f4 fix warning 2004-05-23 00:57:26 +00:00
Chris Danford abfc956e4f refactor Course: move some responsibilities to Trail 2004-05-23 00:53:20 +00:00