aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/lib-mkw.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/dclib/lib-mkw.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/project/dclib/lib-mkw.h b/project/dclib/lib-mkw.h
index 8141e46..2801ece 100644
--- a/project/dclib/lib-mkw.h
+++ b/project/dclib/lib-mkw.h
@@ -162,6 +162,14 @@ static inline bool IsLecodeSpecial ( uint tid )
{ return tid >= MKW_SPECIAL_BEG && tid < MKW_LE_RANDOM_BEG
|| tid >= MKW_LE_RANDOM_END && tid < MKW_SPECIAL_END; }
+
+static inline uint NextLecodeSlot ( uint slot )
+ { return slot == MKW_ARENA_END-1 ? MKW_LE_SLOT_BEG : slot+1; }
+
+static inline uint NextLecodeSlotRnd ( uint slot )
+ { return slot == MKW_ARENA_END-1 ? MKW_LE_RANDOM_BEG
+ : slot == MKW_LE_RANDOM_END-1 ? MKW_LE_SLOT_BEG : slot+1; }
+
//
///////////////////////////////////////////////////////////////////////////////
/////////////// 24p support ///////////////