-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXTENSION: Add MVD_PEXT1_EXTRA_PFS. #2
Open
dsvensson
wants to merge
1
commit into
QW-Group:master
Choose a base branch
from
qw-ctf:main
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+8
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
|
||
# define MVD_PEXT1_INCLUDEINMVD (MVD_PEXT1_HIDDEN_MESSAGES) | ||
|
||
# define MVD_PEXT1_EXTRA_PFS (1 << 8) // Send extra flags used in conjunction with FTE_PEXT_TRANS | ||
|
||
#endif // PROTOCOL_VERSION_MVD1 | ||
|
||
//========================================= | ||
|
@@ -291,8 +293,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
// bits 11..13 are player move type bits (ZQuake extension) | ||
#define PF_PMC_SHIFT 11 | ||
#define PF_PMC_MASK 7 | ||
#ifdef FTE_PEXT_TRANS | ||
#define PF_ONGROUND (1<<22) // ZQuake extension, 14 offset to extra playerflags | ||
#define PF_SOLID (1<<23) // ZQuake extension, 15 offset to extra playerflags | ||
#else | ||
#define PF_ONGROUND (1<<14) // ZQuake extension | ||
#define PF_SOLID (1<<15) // ZQuake extension | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add as comment the closing definition: |
||
|
||
// encoded player move types | ||
#define PMC_NORMAL 0 // normal ground movement | ||
|
@@ -362,6 +369,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
# endif // FTE_PEXT_SCALE | ||
# ifdef FTE_PEXT_TRANS | ||
# define U_FTE_TRANS (1<<1) //transparency value | ||
# define PF_EXTRA_PFS (1<<15) //TRANS requires extra playerflags | ||
# define PF_TRANS_Z (1<<17) | ||
# endif // FTE_PEXT_TRANS | ||
# ifdef FTE_PEXT_FATNESS | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to use indentation to indicate the parent definition.
These files are containing nothing but ifdefs and defines (more or less). Using indentation makes it easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tcsabina as you see here, FTE_PEXT_TRANS will be defined, and then the PF_ONGROUND and PF_SOLID would be offsetted, and the code in ezquake would have to deal with that as it should have from day one when it adopted FTE_PEXT_TRANS. So if this was merged, and ezquake got the new protocol.h file without updated cl_ents.c it would not be able to connect to any server. So this is an API change between
<project ezquake>
and<project protocol.h>
unrelated to protocol changes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good thing is that this part of the alpha support is a trivial change in ezquake once merged in qwprot. Can be dealt with separately from the graphical updates. Could actually be merged before via ifdef's now that I think of it.