Ticket #8537: residual-text.diff

File residual-text.diff, 907 bytes (added by SF/mannythegnome, 18 years ago)

proposed patch

  • lua.cpp

    static void BlastText() {  
    24392439        if (lua_istable(tableObj))
    24402440                getTextObjectParams(textObject, tableObj);
    24412441
    2442         while (TextObjectExists((char *)text.c_str()) != NULL)
    2443                 text += TEXT_NULL;
    2444 
    2445         //printf("Make: %s\n", (char *)text.c_str());
     2442        //printf("Blast: %s\n", (char *)text.c_str());
    24462443
    24472444        textObject->setText((char *)text.c_str());
    24482445        textObject->createBitmap();
  • engine.h

    public:  
    125125        void registerTextObject(TextObject *a) { _textObjects.push_back(a); }
    126126        void killTextObject(TextObject *a) {
    127127                _textObjects.remove(a);
     128                delete a;
    128129        }
    129130        void killTextObjects() {
    130131                while (!_textObjects.empty()) {