mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
b027a3ddc6
commit
9de5b57989
2 changed files with 0 additions and 7 deletions
|
@ -1,11 +1,6 @@
|
||||||
#include "BlockV.h"
|
#include "BlockV.h"
|
||||||
|
|
||||||
blockclass::blockclass()
|
blockclass::blockclass()
|
||||||
{
|
|
||||||
clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void blockclass::clear()
|
|
||||||
{
|
{
|
||||||
type = 0;
|
type = 0;
|
||||||
trigger = 0;
|
trigger = 0;
|
||||||
|
|
|
@ -9,8 +9,6 @@ class blockclass
|
||||||
public:
|
public:
|
||||||
blockclass();
|
blockclass();
|
||||||
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
void rectset(const int xi, const int yi, const int wi, const int hi);
|
void rectset(const int xi, const int yi, const int wi, const int hi);
|
||||||
|
|
||||||
void setblockcolour(std::string col);
|
void setblockcolour(std::string col);
|
||||||
|
|
Loading…
Reference in a new issue