Skip to content

Commit

Permalink
const qualify direction commands
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 3, 2024
1 parent 406e006 commit 68824b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ void updatephysstate(physent *d)
* sprint: allows sprinting in this direction
*/

#define DIR(name,v,d,s,os, sprint) ICOMMAND(name, "D", (int *down), \
#define DIR(name,v,d,s,os, sprint) ICOMMAND(name, "D", (const int *down), \
{ \
game::player1->s = *down!=0; \
game::player1->v = player->s ? d : (player->os ? -(d) : 0); \
Expand Down

0 comments on commit 68824b9

Please sign in to comment.