Fix setting

This commit is contained in:
Miloslav Ciz 2025-03-10 21:05:40 +01:00
parent 34704a934a
commit c4bd226d8f
5 changed files with 8 additions and 5 deletions

View file

@ -62,6 +62,7 @@
=========== BUGS =================
- replays are bugged, seem to not steer
- immediately after starting the map countdown seems to be lower
- the pinch collision test seems to sometimes stop the car e.g. after falling
from bigger height or when running into ramp at high speed (or not?) - FIX

1
data
View file

@ -33,3 +33,4 @@ finish
:!vdt :!vdA
#RLCtiny1;00LCtiny1;8ecff5c0 000381:00a1:02b9:0041:0265:0061:029:0141:0263:0041:0043:0051:003:0041:0033:0031:0033:0052:00260042:0096:0092:0026:0022:0086:02e:001c:0072:0043:00f1:0033:012:0039:0061:0069:0041:00b5:0021:263:0031:00c9:0011
#BLCtiny1;
#RLCtiny1;00LCtiny1;8ecff5c0 000585:00c1:0179:0031:0119:0021:2d5:0039:00d1:0079:0051:00e9:001:0123:0041:0083:00b1:0199:01b101d0:00d1:0063:0072:0040:00c2:033:0011:00d3:00e1:00d3:0122:002:0081:0023:0091:0040:0051:0039:011:0050:0038:003c:0128:0012:003:01e1:0069:0071:00c5:0049:00380059:0151:0053:00c1:0219:0021

View file

@ -37,7 +37,7 @@ void LCR_appendDataStr(const char *str)
if (!dataFile)
return;
if (*str == 0)
if (str == 0 || *str == 0)
rewind(dataFile);
else
{

3
game.h
View file

@ -300,7 +300,7 @@ struct
struct
{
int state; ///< -1 if reading external data f., else pos.
int32_t state; ///< -1 if reading external data f., else pos.
// Indices and counts are among the data of the same type.
unsigned int firstItemIndex;
@ -628,6 +628,7 @@ char LCR_gameGetNextDataFileChar(void)
if (c == 0)
{
LCR_appendDataStr("");
c = LCR_getNextDataFileChar();
LCR_game.dataFile.state = c ? -1 : 0; // trust this
}

View file

@ -171,9 +171,9 @@
#define LCR_SETTING_MUSIC 1
#endif
#ifndef LCR_SETTING_ENABLE_RESOURCE_FILE
/** May be used to disable using the user resource file. */
#define LCR_SETTING_ENABLE_RESOURCE_FILE 1
#ifndef LCR_SETTING_ENABLE_DATA_FILE
/** May be used to disable use of the user data file. */
#define LCR_SETTING_ENABLE_DATA_FILE 1
#endif
#ifndef LCR_SETTING_COUNTDOWN_SECONDS