1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

refactor ride update and fix bugs

This commit is contained in:
IntelOrca
2014-11-02 03:37:56 +00:00
parent 3d40c7e3ee
commit cf59455d69
11 changed files with 1428 additions and 1307 deletions

View File

@@ -51,4 +51,15 @@ long fsize(FILE *fp)
fseek(fp, originalPosition, SEEK_SET);
return size;
}
int bitscanforward(int source)
{
int i;
for (i = 0; i < 32; i++)
if (source & (1 << i))
return i;
return -1;
}

View File

@@ -29,4 +29,6 @@ int mph_to_kmph(int mph);
long fsize(FILE *fp);
int bitscanforward(int source);
#endif