equal
deleted
inserted
replaced
897 while (IsGeneratingWorldReadyForPaint()) { CSleep(10); } |
897 while (IsGeneratingWorldReadyForPaint()) { CSleep(10); } |
898 } |
898 } |
899 |
899 |
900 /** |
900 /** |
901 * Set the total of a stage of the world generation. |
901 * Set the total of a stage of the world generation. |
902 * @param class the current class we are in. |
902 * @param cls the current class we are in. |
903 * @param total Set the total expected items for this class. |
903 * @param total Set the total expected items for this class. |
904 * |
904 * |
905 * Warning: this function isn't clever. Don't go from class 4 to 3. Go upwards, always. |
905 * Warning: this function isn't clever. Don't go from class 4 to 3. Go upwards, always. |
906 * Also, progress works if total is zero, total works if progress is zero. |
906 * Also, progress works if total is zero, total works if progress is zero. |
907 */ |
907 */ |
912 _SetGeneratingWorldProgress(cls, 0, total); |
912 _SetGeneratingWorldProgress(cls, 0, total); |
913 } |
913 } |
914 |
914 |
915 /** |
915 /** |
916 * Increases the current stage of the world generation with one. |
916 * Increases the current stage of the world generation with one. |
917 * @param class the current class we are in. |
917 * @param cls the current class we are in. |
918 * |
918 * |
919 * Warning: this function isn't clever. Don't go from class 4 to 3. Go upwards, always. |
919 * Warning: this function isn't clever. Don't go from class 4 to 3. Go upwards, always. |
920 * Also, progress works if total is zero, total works if progress is zero. |
920 * Also, progress works if total is zero, total works if progress is zero. |
921 */ |
921 */ |
922 void IncreaseGeneratingWorldProgress(gwp_class cls) |
922 void IncreaseGeneratingWorldProgress(gwp_class cls) |