• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).


Commit MetaInfo

Revisionad7d035b4fb4902b096ed1f307363cfc985d7d03 (tree)
Time2024-04-12 03:55:09
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Replaced C-style defines with proper enumerations to define all lmsallowedweapons and lmsspectatorsettings flags.

Change Summary

Incremental Difference

diff -r 718e14eb7bd1 -r ad7d035b4fb4 src/lastmanstanding.h
--- a/src/lastmanstanding.h Sat Apr 13 20:22:43 2024 +0100
+++ b/src/lastmanstanding.h Thu Apr 11 14:55:09 2024 -0400
@@ -65,23 +65,29 @@
6565
6666 } LMSSTATE_e;
6767
68-#define LMS_AWF_PISTOL 0x00000001
69-#define LMS_AWF_SHOTGUN 0x00000002
70-#define LMS_AWF_SSG 0x00000004
71-#define LMS_AWF_CHAINGUN 0x00000008
72-#define LMS_AWF_MINIGUN 0x00000010
73-#define LMS_AWF_ROCKETLAUNCHER 0x00000020
74-#define LMS_AWF_GRENADELAUNCHER 0x00000040
75-#define LMS_AWF_PLASMA 0x00000080
76-#define LMS_AWF_RAILGUN 0x00000100
77-#define LMS_AWF_CHAINSAW 0x00000200
68+enum
69+{
70+ LMS_AWF_PISTOL = ( 1 << 0 ),
71+ LMS_AWF_SHOTGUN = ( 1 << 1 ),
72+ LMS_AWF_SSG = ( 1 << 2 ),
73+ LMS_AWF_CHAINGUN = ( 1 << 3 ),
74+ LMS_AWF_MINIGUN = ( 1 << 4 ),
75+ LMS_AWF_ROCKETLAUNCHER = ( 1 << 5 ),
76+ LMS_AWF_GRENADELAUNCHER = ( 1 << 6 ),
77+ LMS_AWF_PLASMA = ( 1 << 7 ),
78+ LMS_AWF_RAILGUN = ( 1 << 8 ),
79+ LMS_AWF_CHAINSAW = ( 1 << 9 ),
80+};
7881
7982 #define LMS_AWF_ALLALLOWED ( LMS_AWF_PISTOL|LMS_AWF_SHOTGUN|LMS_AWF_SSG|LMS_AWF_CHAINGUN| \
8083 LMS_AWF_MINIGUN|LMS_AWF_ROCKETLAUNCHER|LMS_AWF_GRENADELAUNCHER|LMS_AWF_PLASMA| \
8184 LMS_AWF_RAILGUN|LMS_AWF_CHAINSAW )
8285
83-#define LMS_SPF_CHAT 0x00000001
84-#define LMS_SPF_VIEW 0x00000002
86+enum
87+{
88+ LMS_SPF_CHAT = ( 1 << 0 ),
89+ LMS_SPF_VIEW = ( 1 << 1 ),
90+};
8591
8692 //*****************************************************************************
8793 // PROTOTYPES