mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
[0002285] Implement feature with extra resources near mines (#742)
* RMG: clear start position * [0002285] some heaps of resources are placed nearby mines * Fix leak in case of inability to place resource * Fix indentation according to vcmi style * Add constant for random amount of resources * Code review fixes
This commit is contained in:
@@ -215,7 +215,9 @@ protected:
|
||||
class DLL_LINKAGE CGResource : public CArmedInstance
|
||||
{
|
||||
public:
|
||||
static const ui32 RANDOM_AMOUNT = 0;
|
||||
ui32 amount; //0 if random
|
||||
|
||||
std::string message;
|
||||
|
||||
CGResource();
|
||||
|
||||
Reference in New Issue
Block a user