Skip to content
Permalink
Browse files

fix maprotation condition

  • Loading branch information
Gireen authored and illwieckz committed Dec 26, 2019
1 parent 7a98c4e commit e66d2747fa6900aecdc44200582bd4708bba2132
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/sgame/sg_maprotation.cpp
@@ -404,7 +404,7 @@ static bool G_ParseNode( mrNode_t **node, char *token, const char **text_p, bool

Q_strncpyz( label->name, token, sizeof( label->name ) );
}
else if ( *token == '#' || conditional )
else if ( *token == '#' )
{
mrLabel_t *label;

@@ -1042,6 +1042,14 @@ Send commands to the server to actually change the map
static void G_IssueMapChange( int index, int rotation )
{
mrNode_t *node = mapRotations.rotations[ rotation ].nodes[ index ];

if( node->type == NT_CONDITION )
{
mrCondition_t *condition;
condition = &node->u.condition;
node = condition->target;
}

mrMapDescription_t *map = &node->u.map;
char currentMapName[ MAX_STRING_CHARS ];

0 comments on commit e66d274

Please sign in to comment.
You can’t perform that action at this time.