equal
deleted
inserted
replaced
94 /* The test already free _cmd_text in most cases, so let's backup the string, else we have a problem ;) */ |
94 /* The test already free _cmd_text in most cases, so let's backup the string, else we have a problem ;) */ |
95 if (_cmd_text != NULL) |
95 if (_cmd_text != NULL) |
96 tmp_cmdtext = strdup(_cmd_text); |
96 tmp_cmdtext = strdup(_cmd_text); |
97 |
97 |
98 /* First, do a test-run to see if we can do this */ |
98 /* First, do a test-run to see if we can do this */ |
99 res = DoCommandByTile(tile, p1, p2, flags & ~DC_EXEC, procc); |
99 res = DoCommand(tile, p1, p2, flags & ~DC_EXEC, procc); |
100 /* The command failed, or you didn't want to execute, or you are quering, return */ |
100 /* The command failed, or you didn't want to execute, or you are quering, return */ |
101 if ((CmdFailed(res)) || !(flags & DC_EXEC) || (flags & DC_QUERY_COST)) { |
101 if ((CmdFailed(res)) || !(flags & DC_EXEC) || (flags & DC_QUERY_COST)) { |
102 if (tmp_cmdtext != NULL) |
102 if (tmp_cmdtext != NULL) |
103 free(tmp_cmdtext); |
103 free(tmp_cmdtext); |
104 return res; |
104 return res; |