Skip to content

Commit

Permalink
const qualify entity command functions
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 2, 2024
1 parent afae873 commit 406e006
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions game/entities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void entflip()
GROUP_EDIT_UNDO(e.o[d] -= (e.o[d]-mid)*2);
}

void entrotate(int *cw)
void entrotate(const int *cw)
{
if(noentedit())
{
Expand Down Expand Up @@ -942,7 +942,7 @@ ICOMMAND(enttoggle, "", (),
}
});

ICOMMAND(entmoving, "b", (int *n),
ICOMMAND(entmoving, "b", (const int *n),
{
if(*n >= 0)
{
Expand All @@ -966,7 +966,7 @@ ICOMMAND(entmoving, "b", (int *n),
intret(entmoving);
});

void entpush(int *dir)
void entpush(const int *dir)
{
if(noentedit())
{
Expand All @@ -985,7 +985,7 @@ void entpush(int *dir)
}

VAR(entautoviewdist, 0, 25, 100);
void entautoview(int *dir)
void entautoview(const int *dir)
{
if(!haveselent())
{
Expand Down

0 comments on commit 406e006

Please sign in to comment.