summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Particles.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-27 17:42:26 +0200
committerAki <please@ignore.pl>2022-03-27 17:42:26 +0200
commita12e588079700d55a0b788fea2df7727c2e41f52 (patch)
tree690072569624c73af5043b3619acaab4d298b1fa /Stars45/Particles.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/Particles.cpp')
-rw-r--r--Stars45/Particles.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/Stars45/Particles.cpp b/Stars45/Particles.cpp
index 436f568..911b06f 100644
--- a/Stars45/Particles.cpp
+++ b/Stars45/Particles.cpp
@@ -11,7 +11,6 @@
Particle Burst class
*/
-#include "MemDebug.h"
#include "Particles.h"
#include "Projector.h"
#include "Light.h"
@@ -44,14 +43,14 @@ blend(a), extra(0.0f), point_sprite(0), emitting(true)
if (max_scale < min_scale)
max_scale = min_scale;
- velocity = new(__FILE__,__LINE__) Point[nverts];
- part_loc = new(__FILE__,__LINE__) Point[nverts];
- release = new(__FILE__,__LINE__) Point[nverts];
- intensity = new(__FILE__,__LINE__) float[nverts];
- timestamp = new(__FILE__,__LINE__) float[nverts];
- scale = new(__FILE__,__LINE__) float[nverts];
- angle = new(__FILE__,__LINE__) float[nverts];
- frame = new(__FILE__,__LINE__) BYTE[nverts];
+ velocity = new Point[nverts];
+ part_loc = new Point[nverts];
+ release = new Point[nverts];
+ intensity = new float[nverts];
+ timestamp = new float[nverts];
+ scale = new float[nverts];
+ angle = new float[nverts];
+ frame = new BYTE[nverts];
float speed = base_speed;
@@ -86,7 +85,7 @@ blend(a), extra(0.0f), point_sprite(0), emitting(true)
nverts = (int) (nparts * 0.125 * release_rate);
}
- point_sprite = new(__FILE__,__LINE__) Sprite(bitmap, nframes);
+ point_sprite = new Sprite(bitmap, nframes);
point_sprite->Scale(s);
point_sprite->SetBlendMode(blend);
point_sprite->SetFrameRate(nframes * decay);