mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-11 19:39:45 +01:00
a50e8ecf48
Since those are all downstream recipients of either static storage or memory that doesn't move for the duration of the custom level, it's okay to make these be `const char*`s without having to redo any of the RAII memory management. mapclass::currentarea() is included in this as well. I also cleaned up Tower.cpp's headers to fix some transitive includes because I was removing UtilityClass.h includes from all other level files too. The "Untitled room" names no longer show any coordinates, because doing so would require complicated memory management that's completely unneeded. No one will ever see them, and if they do they already know they have a problem anyway. The only time they might be able to see them is if they corrupted the areamap, but this was only possible in 2.2 and previous by dying outside the room deaths array in Outside Dimension VVVVVV, which has since been patched out. Besides, sometimes the "Untitled room" gets overwritten by something else anyway (especially in Finalclass.cpp), so it really, really doesn't matter.
13 lines
194 B
C++
13 lines
194 B
C++
#ifndef FINALCLASS_H
|
|
#define FINALCLASS_H
|
|
|
|
class finalclass
|
|
{
|
|
public:
|
|
const short* loadlevel(int rx, int ry);
|
|
|
|
const char* roomname;
|
|
bool warpx, warpy;
|
|
};
|
|
|
|
#endif /* FINALCLASS_H */
|