mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove blockclass::clear(), simplify blockclass initializations
Previously, it was used in order to clear a block and deactivate it, and the constructor function simply called clear() in order to not duplicate code. However, clear() is no longer necessary (just remove the block from the blocks vector), and so we can put initialization right back in the constructor function.
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
#include "BlockV.h"
|
||||
|
||||
blockclass::blockclass()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
void blockclass::clear()
|
||||
{
|
||||
type = 0;
|
||||
trigger = 0;
|
||||
|
||||
@@ -9,8 +9,6 @@ class blockclass
|
||||
public:
|
||||
blockclass();
|
||||
|
||||
void clear();
|
||||
|
||||
void rectset(const int xi, const int yi, const int wi, const int hi);
|
||||
|
||||
void setblockcolour(std::string col);
|
||||
|
||||
Reference in New Issue
Block a user