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:
@@ -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;
|
||||
}
|
||||
@@ -29,4 +29,6 @@ int mph_to_kmph(int mph);
|
||||
|
||||
long fsize(FILE *fp);
|
||||
|
||||
int bitscanforward(int source);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user