#8537 closed patch
residual: improve text object resource handling
Reported by: | SF/mannythegnome | Owned by: | aquadran |
---|---|---|---|
Priority: | normal | Component: | ResidualVM |
Version: | Keywords: | ||
Cc: | Game: |
Description
The attached patch ensures that the resources associated with a killed text object are destroyed (i.e. the bitmap) which prevents residual from becoming a resource hog in the main menu.
I'm not sure whether the delete statement is appropriate at that place, and I don't know enough CPP to judge whether the remove statement is superfluous, i.e. whether the delete statement implies removal from lists.
The patch also removes the TextObjectExists statement from BlastText(), which IMHO isn't neccessary (the object will be destroyed right after it was drawn).
Ticket imported from: #1495487. Ticket imported from: patches/642.
Attachments (1)
Change History (10)
by , 18 years ago
Attachment: | residual-text.diff added |
---|
comment:1 by , 18 years ago
Hrm the actor.cpp code seem to call delete itself for each sayline deletion, while the deleteTextObjects code of the engine (that deletes all the text objects) does the deletion.
comment:2 by , 18 years ago
Owner: | set to |
---|
comment:4 by , 18 years ago
i didn't have a time for look close into that patch yet. So i don't know yet.
comment:8 by , 18 years ago
Status: | new → closed |
---|
comment:9 by , 6 years ago
Component: | → ResidualVM |
---|
proposed patch