You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (animSet[slot].counter != animSet[slot].totalAnimCount) {
268
-
lockAnimSet[slot] = 8;
269
-
}
270
-
return slot;
271
-
}
272
-
273
-
staticlong __fastcall UnlockAnimSlot() {
274
-
long lockCount = 0;
275
-
for (std::vector<int8_t>::iterator it = lockAnimSet.begin(); it != lockAnimSet.end(); ++it) {
276
-
if (*it > 0) {
277
-
(*it)--;
278
-
lockCount++;
279
-
}
280
-
}
281
-
if (lockCount >= lockLimit) fo_debug_printf("\n[SFALL] Warning: The number of animated slots in the lock is too large, locked %d of %d", lockCount, animationLimit);
282
-
return0;
283
-
}
284
-
285
-
static BYTE __fastcall CheckLockAnimSlot(long, long slot) {
286
-
return lockAnimSet[slot];
287
-
}
288
-
289
266
staticvoid __fastcall CheckAppendReg(long, long totalAnims) {
static BYTE __fastcall CheckLockAnimSlot(long, long slot) {
328
+
return lockAnimSet[slot];
329
+
}
330
+
331
+
staticlong __fastcall LockAnimSlot(long slot) {
332
+
if (animSet[slot].counter != animSet[slot].totalAnimCount) {
333
+
lockAnimSet[slot] = 8;
334
+
}
335
+
return slot;
336
+
}
337
+
338
+
staticlong __fastcall UnlockAnimSlot() {
339
+
long lockCount = 0;
340
+
for (std::vector<int8_t>::iterator it = lockAnimSet.begin(); it != lockAnimSet.end(); ++it) {
341
+
if (*it > 0) {
342
+
(*it)--;
343
+
lockCount++;
344
+
}
345
+
}
346
+
if (lockCount >= lockLimit) fo_debug_printf("\n[SFALL] Warning: The number of animated slots in the lock is too large, locked %d of %d", lockCount, animationLimit);
0 commit comments