diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-11-30 23:21:16 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | 41fa16f3254ffa9f44b85d6570a2293e8438b427 (patch) | |
tree | a508634b7dea7a0937e92c143db0a392cd99a4b0 /src/script/script_storage.hpp | |
parent | 57b82e2e99aa30a649d1fd80f192ccf5338dc7c4 (diff) | |
download | openttd-41fa16f3254ffa9f44b85d6570a2293e8438b427.tar.xz |
Codechange: Don't use globals for return values from vehicle command procs.
Diffstat (limited to 'src/script/script_storage.hpp')
-rw-r--r-- | src/script/script_storage.hpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/script/script_storage.hpp b/src/script/script_storage.hpp index f95eb7e71..2afb03827 100644 --- a/src/script/script_storage.hpp +++ b/src/script/script_storage.hpp @@ -49,8 +49,6 @@ private: Commands last_cmd; ///< The last cmd passed to a command. CommandDataBuffer last_cmd_ret; ///< The extra data returned by the last command. - VehicleID new_vehicle_id; ///< The ID of the new Vehicle. - std::vector<int> callback_value; ///< The values which need to survive a callback. RoadType road_type; ///< The current roadtype we build. @@ -73,7 +71,6 @@ public: last_command_res (true), last_tile (INVALID_TILE), last_cmd (CMD_END), - new_vehicle_id (0), /* calback_value (can't be set) */ road_type (INVALID_ROADTYPE), rail_type (INVALID_RAILTYPE), |