equal
deleted
inserted
replaced
59 |
59 |
60 bool AITransactionMode::Execute() |
60 bool AITransactionMode::Execute() |
61 { |
61 { |
62 /* Make sure we are stopped */ |
62 /* Make sure we are stopped */ |
63 this->Stop(); |
63 this->Stop(); |
|
64 |
|
65 /* Remove the costs this transaction costs from the total costs, so any |
|
66 * 'accounting' running on the background will get the real costs for |
|
67 * executing, and not the double value of both testing and executing */ |
|
68 this->IncreaseDoCommandCosts(-this->GetCosts()); |
64 |
69 |
65 /* Switch to a forced execute mode */ |
70 /* Switch to a forced execute mode */ |
66 AIExecMode exec; |
71 AIExecMode exec; |
67 |
72 |
68 /* Reverse stack should be empty */ |
73 /* Reverse stack should be empty */ |